Altium: Fix bug when symbol uses multiple display modes on one sheet.

This commit is contained in:
Alex Shvartzkop 2024-02-05 22:11:48 +03:00
parent d8c72e845c
commit be1bbda8ce
1 changed files with 3 additions and 2 deletions

View File

@ -958,11 +958,12 @@ void SCH_IO_ALTIUM::ParseComponent( int aIndex,
const ASCH_SYMBOL& elem = pair.first->second;
// 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,
elem.orientation,
elem.isMirrored ? "_mirrored" : "",
elem.libreference );
elem.libreference,
elem.displaymodecount > 1 ? wxString::Format( "_%d", elem.displaymode ) : "" );
LIB_ID libId = AltiumToKiCadLibID( getLibName(), name );
LIB_SYMBOL* ksymbol = new LIB_SYMBOL( wxEmptyString );