Escape names when migrating legacy libraries.
Fixes https://gitlab.com/kicad/code/kicad/issues/8951
This commit is contained in:
parent
98d0ce00ee
commit
fbb3f4b58d
|
@ -834,6 +834,8 @@ bool PANEL_SYM_LIB_TABLE::convertLibrary( const wxString& aLibrary, const wxStri
|
|||
if( symbol->IsAlias() )
|
||||
continue;
|
||||
|
||||
symbol->SetName( EscapeString( symbol->GetName(), CTX_LIBID ) );
|
||||
|
||||
newSymbols.push_back( new LIB_SYMBOL( *symbol ) );
|
||||
symbolMap[symbol] = newSymbols.back();
|
||||
}
|
||||
|
@ -844,6 +846,8 @@ bool PANEL_SYM_LIB_TABLE::convertLibrary( const wxString& aLibrary, const wxStri
|
|||
if( !symbol->IsAlias() )
|
||||
continue;
|
||||
|
||||
symbol->SetName( EscapeString( symbol->GetName(), CTX_LIBID ) );
|
||||
|
||||
newSymbols.push_back( new LIB_SYMBOL( *symbol ) );
|
||||
newSymbols.back()->SetParent( symbolMap[ symbol->GetParent().lock().get() ] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue