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:
jean-pierre charras
2022-11-04 07:31:23 +01:00
parent 6f3e969529
commit 9dba54190e
+2
View File
@@ -198,6 +198,8 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
{
if( c == '\'' )
converted += wxT( "{quote}" );
else if( c == '\\' )
converted += wxT( "{backslash}" );
else
converted += c;
}