summaryrefslogtreecommitdiff
path: root/src/Fl_PS_Printer.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-03-23 18:41:30 +0000
committerManolo Gouy <Manolo>2010-03-23 18:41:30 +0000
commitd19b0262ea07af894bc8dbd7ab26b82fec1267b2 (patch)
tree26b91bc701fc05a1cccbfc17620ba0b6818a2432 /src/Fl_PS_Printer.cxx
parente00a106337e3aad480e99ea72f7600399b812279 (diff)
Better error return codes for Fl_PSfile_Device::start_job()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_PS_Printer.cxx')
-rw-r--r--src/Fl_PS_Printer.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_PS_Printer.cxx b/src/Fl_PS_Printer.cxx
index d981ee2c9..cdc3545a4 100644
--- a/src/Fl_PS_Printer.cxx
+++ b/src/Fl_PS_Printer.cxx
@@ -1204,9 +1204,10 @@ int Fl_PSfile_Device::start_job (int pagecount, enum Page_Format format, enum Pa
// Show native chooser
if ( fnfc.show() ) return 1;
output = fopen(fnfc.filename(), "w");
- if(output == NULL) return 1;
+ if(output == NULL) return 2;
ps_filename_ = strdup(fnfc.filename());
- return start_postscript(pagecount, format, layout);
+ start_postscript(pagecount, format, layout);
+ return 0;
}
int Fl_PSfile_Device::start_job (const char *fname, int pagecount, enum Page_Format format, enum Page_Layout layout)