Use GetSchSymbolLibraryName() when looking up symbol in schematic.
Fixes https://gitlab.com/kicad/code/kicad/issues/7301
This commit is contained in:
parent
46658076bd
commit
8464add58c
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue