mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 12:41:27 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user