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:
parent
cf672dba0d
commit
a4c021e595
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user