From 1e33c53438a1497de2a9b33248497cab29ed68a6 Mon Sep 17 00:00:00 2001 From: Mathias Bauer Date: Tue, 4 Dec 2001 15:39:23 +0000 Subject: #93280#: better handling of printing error --- vcl/win/source/gdi/salprn.cxx | 7 ++++--- 1 file 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; -- cgit