summaryrefslogtreecommitdiff
path: root/vcl/win/source/gdi/salprn.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2001-12-04 15:39:23 +0000
committerMathias Bauer <mba@openoffice.org>2001-12-04 15:39:23 +0000
commit1e33c53438a1497de2a9b33248497cab29ed68a6 (patch)
tree07ed85d899aed6f62256876286667e9c58a52431 /vcl/win/source/gdi/salprn.cxx
parentc995a7aa6935f5adc79f8e4727b7e5ac78e413a8 (diff)
#93280#: better handling of printing error
Diffstat (limited to 'vcl/win/source/gdi/salprn.cxx')
-rw-r--r--vcl/win/source/gdi/salprn.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index 97dba89b4074..d6ce934e1f1a 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salprn.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: ssa $ $Date: 2001-12-03 13:41:04 $
+ * last change: $Author: mba $ $Date: 2001-12-04 16:39:23 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1295,7 +1295,8 @@ BOOL SalPrinter::StartJob( const XubString* pFileName,
int nRet = ::StartDoc( hDC, &aInfo );
if ( nRet <= 0 )
{
- if ( (nRet == SP_USERABORT) || (nRet == SP_APPABORT) || (GetLastError() == ERROR_PRINT_CANCELLED) )
+ long nError = GetLastError();
+ if ( (nRet == SP_USERABORT) || (nRet == SP_APPABORT) || (nError == ERROR_PRINT_CANCELLED) || (nError == ERROR_CANCELLED) )
maPrinterData.mnError = SAL_PRINTER_ERROR_ABORT;
else
maPrinterData.mnError = SAL_PRINTER_ERROR_GENERALERROR;