added missing return on error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10707 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,6 +144,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
wxEndBusyCursor();
|
wxEndBusyCursor();
|
||||||
wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent);
|
wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent);
|
||||||
delete dc;
|
delete dc;
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
sm_abortWindow = win;
|
sm_abortWindow = win;
|
||||||
sm_abortWindow->Show(TRUE);
|
sm_abortWindow->Show(TRUE);
|
||||||
|
@@ -144,6 +144,7 @@ bool wxMacPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|||||||
wxEndBusyCursor();
|
wxEndBusyCursor();
|
||||||
wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent);
|
wxMessageBox("Sorry, could not create an abort dialog.", "Print Error", wxOK, parent);
|
||||||
delete dc;
|
delete dc;
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
sm_abortWindow = win;
|
sm_abortWindow = win;
|
||||||
sm_abortWindow->Show(TRUE);
|
sm_abortWindow->Show(TRUE);
|
||||||
|
Reference in New Issue
Block a user