Repaired Fl_PostScript_Printer::start_job() that didn't work well when its 1st argument was 0

to indicate unknown number of pages.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2012-12-25 21:18:12 +00:00
parent cf672dba0d
commit a4c021e595

View File

@ -1577,7 +1577,7 @@ int Fl_PostScript_Printer::start_job(int pages, int *firstpage, int *lastpage) {
if (to < from) to = from;
if (firstpage) *firstpage = from;
if (lastpage) *lastpage = to;
pages = to - from + 1;
if (pages > 0) pages = to - from + 1;
}
if (print_output_mode[0]->value()) layout = Fl_Paged_Device::PORTRAIT;