Author: manolo
Date: 2012-12-25 13:18:12 -0800 (Tue, 25 Dec 2012)
New Revision: 9775
Log:
Repaired Fl_PostScript_Printer::start_job() that didn't work well when its 1st 
argument was 0
to indicate unknown number of pages.

Modified:
   branches/branch-1.3/src/Fl_PostScript.cxx

Modified: branches/branch-1.3/src/Fl_PostScript.cxx
===================================================================
--- branches/branch-1.3/src/Fl_PostScript.cxx   2012-12-24 11:45:07 UTC (rev 
9774)
+++ branches/branch-1.3/src/Fl_PostScript.cxx   2012-12-25 21:18:12 UTC (rev 
9775)
@@ -1577,7 +1577,7 @@
     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;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to