From d19b0262ea07af894bc8dbd7ab26b82fec1267b2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 23 Mar 2010 18:41:30 +0000 Subject: 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 --- src/Fl_PS_Printer.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3