Use GetSchSymbolLibraryName() when looking up symbol in schematic.

Fixes https://gitlab.com/kicad/code/kicad/issues/7301
This commit is contained in:
Jeff Young 2021-02-02 22:52:53 +00:00
parent 46658076bd
commit 8464add58c
1 changed files with 1 additions and 1 deletions

View File

@ -683,7 +683,7 @@ int ERC_TESTER::TestLibSymbolIssues()
wxCHECK2( symbol, continue ); wxCHECK2( symbol, continue );
wxString libIdStr = symbol->GetLibId().GetUniStringLibId(); wxString libIdStr = symbol->GetSchSymbolLibraryName();
LIB_PART* libSymbolInSchematic = screen->GetLibSymbols()[ libIdStr ]; LIB_PART* libSymbolInSchematic = screen->GetLibSymbols()[ libIdStr ];
wxCHECK2( libSymbolInSchematic, continue ); wxCHECK2( libSymbolInSchematic, continue );