From: Gilles Depeyrot Date: Thu, 28 Jun 2001 06:31:37 +0000 (+0000) Subject: added missing return on error X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4b7b750dd1ffd0d26b78728adb613b282a37c058 added missing return on error git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/printmac.cpp b/src/mac/carbon/printmac.cpp index 50c666ce95..426bd42de3 100644 --- a/src/mac/carbon/printmac.cpp +++ b/src/mac/carbon/printmac.cpp @@ -144,6 +144,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) wxEndBusyCursor(); wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent); delete dc; + return FALSE; } sm_abortWindow = win; sm_abortWindow->Show(TRUE); diff --git a/src/mac/printmac.cpp b/src/mac/printmac.cpp index 50c666ce95..426bd42de3 100644 --- a/src/mac/printmac.cpp +++ b/src/mac/printmac.cpp @@ -144,6 +144,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt) wxEndBusyCursor(); wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent); delete dc; + return FALSE; } sm_abortWindow = win; sm_abortWindow->Show(TRUE);