Don't double-escape netnames.

Netnames in wxChoice or wxListBox are already in internal format
and don't need escaping again.

Fixes: lp:1823863
* https://bugs.launchpad.net/kicad/+bug/1823863
This commit is contained in:
Jeff Young
2019-04-12 00:28:58 +01:00
parent 76e0622222
commit 0021ecf51e
6 changed files with 5 additions and 11 deletions
-5
View File
@@ -59,14 +59,9 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
}
else if( aContext == CTX_NETNAME )
{
// Currently, modifying a netname creates mubh more issues than it fixes.
// Especially the netnames shown on screen are not those living in netlists
// breaking net info in Spice, Gerber X2 and IPC356 for instance
#if 0
if( c == '/' )
converted += "{slash}";
else
#endif
converted += c;
}
else if( aContext == CTX_LIBID )