diff options
| author | Manolo Gouy <Manolo> | 2013-07-16 19:09:57 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2013-07-16 19:09:57 +0000 |
| commit | 86c9ef0c7653aa096d6d30408fc37d1019d5620b (patch) | |
| tree | a09f8e8acf410957fd9b641494c6b150a456e629 /src | |
| parent | 56da8bd24efa93e9de74968701ccca4adb9b2e89 (diff) | |
Fixed a PostScript error triggered when calling
Fl_PostScript_Graphics_Driver::arc(int x, int y, int w, int h, double a1, double a2)
with w == 1 or h == 1, as reported in
http://www.fltk.org/newsgroups.php?s28125+gfltk.general+v28133
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_PostScript.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index 5c3f81461..24256c91d 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -1254,6 +1254,7 @@ void Fl_PostScript_Graphics_Driver::arc(double x, double y, double r, double sta } void Fl_PostScript_Graphics_Driver::arc(int x, int y, int w, int h, double a1, double a2) { + if (w <= 1 || h <= 1) return; fprintf(output, "GS\n"); //fprintf(output, "BP\n"); begin_line(); |
