Escape parens when outputting PDF text.

Fixes https://gitlab.com/kicad/code/kicad/issues/5917
This commit is contained in:
Jeff Young 2020-10-08 16:37:18 +01:00
parent db9e111838
commit fa32f291bc
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ std::string PDF_PLOTTER::encodeStringForPlotter( const wxString& aText )
// These characters must be escaped
switch( code )
{
// se if '(' and ')' must be escaped.
case '(':
case ')':
case '\\':
result += '\\';
KI_FALLTHROUGH;