diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp index 2e0a865661..640c862a54 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp @@ -1976,13 +1976,17 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadItemOntoKiCadSheet( LAYER_ID aCadstarSheetI CADSTAR_SCH_ARCHIVE_LOADER::SYMDEF_ID CADSTAR_SCH_ARCHIVE_LOADER::getSymDefFromName( const wxString& aSymdefName, const wxString& aSymDefAlternate ) { + // Do a case-insensitive comparison for( std::pair symPair : Library.SymbolDefinitions ) { SYMDEF_ID id = symPair.first; SYMDEF_SCM symdef = symPair.second; - if( symdef.ReferenceName == aSymdefName && symdef.Alternate == aSymDefAlternate ) + if( symdef.ReferenceName.Lower() == aSymdefName.Lower() + && symdef.Alternate.Lower() == aSymDefAlternate.Lower() ) + { return id; + } } return SYMDEF_ID();