CADSTAR Schematic: Fix duplicate pins

Fixes a bug that was causing duplicate pins to be loaded
(one on top of the other) for all symbols.
This commit is contained in:
Roberto Fernandez Bautista 2021-03-29 16:00:28 +01:00 committed by Wayne Stambaugh
parent 767aab7294
commit c5e4220b5b
1 changed files with 3 additions and 0 deletions

View File

@ -401,6 +401,9 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadSchematicSymbolInstances()
continue;
}
if( sym.GateID.IsEmpty() )
sym.GateID = wxT( "A" ); // Assume Gate "A" if unspecified
PART_GATE_ID partSymbolID = { sym.PartRef.RefID, sym.GateID };
LIB_PART* kiPart = m_partMap.at( sym.PartRef.RefID );
bool copy = false;