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
This commit is contained in:
Manolo Gouy
2013-07-16 19:09:57 +00:00
parent 56da8bd24e
commit 86c9ef0c76
+1
View File
@@ -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();