From a4c021e59517259779fa4f0a19652741dc0e81e5 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 25 Dec 2012 21:18:12 +0000 Subject: 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 --- src/Fl_PostScript.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_PostScript.cxx') diff --git a/src/Fl_PostScript.cxx b/src/Fl_PostScript.cxx index 8ff1b619d..5c3f81461 100644 --- a/src/Fl_PostScript.cxx +++ b/src/Fl_PostScript.cxx @@ -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; -- cgit v1.2.3