CADSTAR Schematic: Ensure library ID is valid
Previously the library created was invalid - opening it resulted in a parsing error due to invalid characters in the name.
This commit is contained in:
parent
be9ff7a7d5
commit
8268c4ad17
|
@ -336,7 +336,8 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadPartsLibrary()
|
|||
if( part.Definition.GateSymbols.size() == 0 )
|
||||
continue;
|
||||
|
||||
LIB_SYMBOL* kiPart = new LIB_SYMBOL( part.Name );
|
||||
wxString escapedPartName = EscapeString( part.Name, CTX_LIBID );
|
||||
LIB_SYMBOL* kiPart = new LIB_SYMBOL( escapedPartName );
|
||||
|
||||
kiPart->SetUnitCount( part.Definition.GateSymbols.size() );
|
||||
bool ok = true;
|
||||
|
|
Loading…
Reference in New Issue