Altium: Fix bug when symbol uses multiple display modes on one sheet.
This commit is contained in:
parent
d8c72e845c
commit
be1bbda8ce
|
@ -958,11 +958,12 @@ void SCH_IO_ALTIUM::ParseComponent( int aIndex,
|
||||||
const ASCH_SYMBOL& elem = pair.first->second;
|
const ASCH_SYMBOL& elem = pair.first->second;
|
||||||
|
|
||||||
// TODO: this is a hack until we correctly apply all transformations to every element
|
// TODO: this is a hack until we correctly apply all transformations to every element
|
||||||
wxString name = wxString::Format( "%s_%d%s_%s",
|
wxString name = wxString::Format( "%s_%d%s_%s%s",
|
||||||
sheetName,
|
sheetName,
|
||||||
elem.orientation,
|
elem.orientation,
|
||||||
elem.isMirrored ? "_mirrored" : "",
|
elem.isMirrored ? "_mirrored" : "",
|
||||||
elem.libreference );
|
elem.libreference,
|
||||||
|
elem.displaymodecount > 1 ? wxString::Format( "_%d", elem.displaymode ) : "" );
|
||||||
LIB_ID libId = AltiumToKiCadLibID( getLibName(), name );
|
LIB_ID libId = AltiumToKiCadLibID( getLibName(), name );
|
||||||
|
|
||||||
LIB_SYMBOL* ksymbol = new LIB_SYMBOL( wxEmptyString );
|
LIB_SYMBOL* ksymbol = new LIB_SYMBOL( wxEmptyString );
|
||||||
|
|
Loading…
Reference in New Issue