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-03 20:05:14 +01:00
parent 6f3e969529
commit 9dba54190e
1 changed files with 2 additions and 0 deletions

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;
}