Gerber P&P files: escape the double quote char inside user strings.

This is a reserved char, used to quote user strings
This commit is contained in:
jean-pierre charras 2019-12-28 13:26:46 +01:00
parent 7241247fbc
commit d5b8e4928c
1 changed files with 6 additions and 1 deletions

View File

@ -403,7 +403,7 @@ wxString ConvertNotAllowedCharsInGerber( const wxString& aString, bool aAllowUtf
* 16 bits sequence unicode
* However if aAllowUtf8Chars is true only unautorized codes will be escaped, because some
* Gerber files accept UTF8 chars.
* unautorized codes are ',' '*' '%' '\' and are used as separators in Gerber files
* unautorized codes are ',' '*' '%' '\' '"' and are used as separators in Gerber files
*/
wxString txt;
@ -424,6 +424,11 @@ wxString ConvertNotAllowedCharsInGerber( const wxString& aString, bool aAllowUtf
convert = true;
break;
case '"':
if( aQuoteString )
convert = true;
break;
default:
break;
}