Author: manolo
Date: 2012-12-26 04:17:52 -0800 (Wed, 26 Dec 2012)
New Revision: 9776
Log:
Repaired fltk3::PostScriptPrinter::start_job() that didn't work well when its
1st argument was 0
to indicate unknown number of pages.
Modified:
branches/branch-3.0/src/fltk3/PostScript.cxx
Modified: branches/branch-3.0/src/fltk3/PostScript.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/PostScript.cxx 2012-12-25 21:18:12 UTC
(rev 9775)
+++ branches/branch-3.0/src/fltk3/PostScript.cxx 2012-12-26 12:17:52 UTC
(rev 9776)
@@ -1584,7 +1584,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 = fltk3::PagedDevice::PORTRAIT;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit