diff options
| author | Manolo Gouy <Manolo> | 2012-12-25 21:18:12 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2012-12-25 21:18:12 +0000 |
| commit | a4c021e59517259779fa4f0a19652741dc0e81e5 (patch) | |
| tree | c036350f7a025a58ba8646dd98360c1d7458c5ef /src/Fl_PostScript.cxx | |
| parent | cf672dba0db831679ba0cb5b9966a6dd1bbcb6e5 (diff) | |
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
Diffstat (limited to 'src/Fl_PostScript.cxx')
| -rw-r--r-- | src/Fl_PostScript.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
