From: Vadim Zeitlin Date: Thu, 17 Mar 2005 23:24:30 +0000 (+0000) Subject: return if abort dialog couldn't be created (part of patch 1160117) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e71693c3408aea80dc167a70dcb02fc82d1cdc89 return if abort dialog couldn't be created (part of patch 1160117) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/printwin.cpp b/src/msw/printwin.cpp index 727d956f2c..cd496d3291 100644 --- a/src/msw/printwin.cpp +++ b/src/msw/printwin.cpp @@ -210,6 +210,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt sm_lastError = wxPRINTER_ERROR; delete dc; + return false; } sm_abortWindow = win; sm_abortWindow->Show(); @@ -281,7 +282,7 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt delete dc; - return (sm_lastError == wxPRINTER_NO_ERROR); + return sm_lastError == wxPRINTER_NO_ERROR; } wxDC* wxWindowsPrinter::PrintDialog(wxWindow *parent) @@ -428,9 +429,9 @@ LONG APIENTRY _EXPORT wxAbortProc(HDC WXUNUSED(hPr), int WXUNUSED(Code)) DispatchMessage(&msg); } - /* bAbort is TRUE (return is FALSE) if the user has aborted */ + /* bAbort is TRUE (return is FALSE) if the user has aborted */ - return (!wxPrinterBase::sm_abortIt); + return !wxPrinterBase::sm_abortIt; } #endif