summaryrefslogtreecommitdiff
path: root/src/Fl_GDI_Printer.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-02-26 15:38:54 +0000
committerManolo Gouy <Manolo>2015-02-26 15:38:54 +0000
commitc0ed5480058bfcdc3d09b3025bd20936730a2fe9 (patch)
tree986d5a0f07195f52ac649c6d692f62e851b29ba8 /src/Fl_GDI_Printer.cxx
parent3441590a1d79185336a0a046b6dba2a90340ff14 (diff)
1) More detailed Doxygen documentation for classes Fl_Printer, Fl_Surface_Device, Fl_Display_Device
and Fl_Graphics_Driver. 2) Support call of Fl_Printer::start_job(pagecount) with pagecount=0 when the number of pages is unavailable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_GDI_Printer.cxx')
-rw-r--r--src/Fl_GDI_Printer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_GDI_Printer.cxx b/src/Fl_GDI_Printer.cxx
index 7247da350..60366424f 100644
--- a/src/Fl_GDI_Printer.cxx
+++ b/src/Fl_GDI_Printer.cxx
@@ -55,6 +55,7 @@ static void WIN_SetupPrinterDeviceContext(HDC prHDC)
int Fl_System_Printer::start_job (int pagecount, int *frompage, int *topage)
// returns 0 iff OK
{
+ if (pagecount == 0) pagecount = 10000;
DWORD commdlgerr;
DOCINFO di;
char docName [256];