PDF plotter: Encode '\' as "{backslash}" for CTX_JS_STR context.
This is a poor hack (similar to hack for the ' char), but it allows displaying context menu when '\' is inserted in a property.
This commit is contained in:
parent
6f3e969529
commit
9dba54190e
|
@ -198,6 +198,8 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
|
||||||
{
|
{
|
||||||
if( c == '\'' )
|
if( c == '\'' )
|
||||||
converted += wxT( "{quote}" );
|
converted += wxT( "{quote}" );
|
||||||
|
else if( c == '\\' )
|
||||||
|
converted += wxT( "{backslash}" );
|
||||||
else
|
else
|
||||||
converted += c;
|
converted += c;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue