Fix Windows build.

This commit is contained in:
Alex Shvartzkop 2024-02-06 00:38:21 +03:00
parent be1bbda8ce
commit 0778a7d46d
1 changed files with 6 additions and 3 deletions

View File

@ -958,12 +958,15 @@ 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%s",
wxString name = wxString::Format( "%s_%d%s_%s",
sheetName,
elem.orientation,
elem.isMirrored ? "_mirrored" : "",
elem.libreference,
elem.displaymodecount > 1 ? wxString::Format( "_%d", elem.displaymode ) : "" );
elem.libreference );
if( elem.displaymodecount > 1 )
name << '_' << elem.displaymode;
LIB_ID libId = AltiumToKiCadLibID( getLibName(), name );
LIB_SYMBOL* ksymbol = new LIB_SYMBOL( wxEmptyString );