Eeschema: fix a crash when loading a schematic if a symbol in a sheet has
a lib_id containing {slash} instead of / (related to commit #2f51d22b) Fixes #15791 https://gitlab.com/kicad/code/kicad/-/issues/15791
This commit is contained in:
parent
7bc2d69ab7
commit
b2bf28f559
|
@ -2695,6 +2695,10 @@ SCH_SYMBOL* SCH_SEXPR_PARSER::parseSchematicSymbol()
|
|||
|
||||
LIB_ID libId;
|
||||
wxString name = FromUTF8();
|
||||
// Some symbol LIB_IDs have the '/' character escaped which can break
|
||||
// symbol links. The '/' character is no longer an illegal LIB_ID character so
|
||||
// it doesn't need to be escaped.
|
||||
name.Replace( "{slash}", "/" );
|
||||
int bad_pos = libId.Parse( name );
|
||||
|
||||
if( bad_pos >= 0 )
|
||||
|
|
Loading…
Reference in New Issue