diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-18 11:43:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-18 11:43:03 +0200 |
commit | 0761c148dd4579cec69eaeaace260f6bcec2dbed (patch) | |
tree | cc8d4048fbfb0af7747df6c09c2e2019ba601430 /vcl/win | |
parent | 36ec485c70cfd952426bc072e40fb07a7ee1172a (diff) |
Revert "fix windows build"
This reverts commit 36ec485c70cfd952426bc072e40fb07a7ee1172a.
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/salprn.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index e7bdbb249c84..b0aca3c25a27 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -1650,7 +1650,7 @@ SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, bool bNewJobDat return mpGraphics; } -void WinSalPrinter::EndPage() +bool WinSalPrinter::EndPage() { HDC hDC = mhDC; if ( hDC && mpGraphics ) @@ -1661,17 +1661,20 @@ void WinSalPrinter::EndPage() } if( ! isValid() ) - return; + return FALSE; volatile int nRet = 0; CATCH_DRIVER_EX_BEGIN; nRet = ::EndPage( hDC ); CATCH_DRIVER_EX_END( "exception in EndPage", this ); - if ( nRet <= 0 ) + if ( nRet > 0 ) + return TRUE; + else { GetLastError(); mnError = SAL_PRINTER_ERROR_GENERALERROR; + return FALSE; } } |