From 86c9ef0c7653aa096d6d30408fc37d1019d5620b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 16 Jul 2013 19:09:57 +0000 Subject: 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 --- src/Fl_PostScript.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(); -- cgit v1.2.3