diff options
| author | Manolo Gouy <Manolo> | 2010-03-24 12:07:45 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-03-24 12:07:45 +0000 |
| commit | 5b7707b1b11310903789acf4e67185bc8c9b125a (patch) | |
| tree | 5c66a90f02b38e1b8fd6753fd3f25af1e4b8c089 /src | |
| parent | d305d7078bf146dfebff8ca137ae8a9e26d0fc2e (diff) | |
Fixed output of \ to PostScript strings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_PS_Printer.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Fl_PS_Printer.cxx b/src/Fl_PS_Printer.cxx index 6392108c7..02d632e4b 100644 --- a/src/Fl_PS_Printer.cxx +++ b/src/Fl_PS_Printer.cxx @@ -867,9 +867,8 @@ void Fl_PSfile_Device::transformed_draw(const char* str, int n, double x, double } i++; switch (*str) { - case '(': case ')': - fprintf(output, "\\%c" , *str); - break; + case '(': case ')': case '\\' : + fputs("\\" , output); default: fprintf(output, "%c", *str); } |
