Make sure bus members get escaped after parsing.
Fixes https://gitlab.com/kicad/code/kicad/issues/6400
This commit is contained in:
parent
7376c25ebe
commit
79c7cf12c9
|
@ -454,11 +454,13 @@ bool NET_SETTINGS::ParseBusGroup( wxString aGroup, wxString* aName,
|
|||
else if( aGroup[i] == '}' )
|
||||
{
|
||||
if( braceNesting )
|
||||
{
|
||||
braceNesting--;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( aMemberList )
|
||||
aMemberList->push_back( tmp );
|
||||
aMemberList->push_back( EscapeString( tmp, CTX_NETNAME ) );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -467,7 +469,7 @@ bool NET_SETTINGS::ParseBusGroup( wxString aGroup, wxString* aName,
|
|||
if( aGroup[i] == ' ' )
|
||||
{
|
||||
if( aMemberList )
|
||||
aMemberList->push_back( tmp );
|
||||
aMemberList->push_back( EscapeString( tmp, CTX_NETNAME ) );
|
||||
|
||||
tmp.Clear();
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue