Fix name escaping in Save As

Fixes https://gitlab.com/kicad/code/kicad/issues/13504
This commit is contained in:
Seth Hillbrand 2023-01-12 13:33:48 -08:00
parent 316087c468
commit 5e3b74aee5
1 changed files with 2 additions and 0 deletions

View File

@ -714,6 +714,8 @@ void SYMBOL_EDIT_FRAME::saveSymbolAs()
return;
}
new_name = EscapeString( new_name, CTX_LIBID );
// Test if there is a symbol with this name already.
if( m_libMgr->SymbolExists( new_name, new_lib ) )
{