From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Thu, 9 Mar 2000 16:33:03 +0000 (+0000) Subject: use wxFAIL_MSG, not wxMessageBox for programming errors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/771779ed912811d13ad82ff77eba3ea57d15e0c9 use wxFAIL_MSG, not wxMessageBox for programming errors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index 059fa64f8c..03182d5c25 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -657,8 +657,10 @@ bool wxPrintPreviewBase::RenderPage(int pageNum) if (!m_previewCanvas) { - wxMessageBox(_("wxPrintPreviewBase::RenderPage: must use wxPrintPreviewBase::SetCanvas to let me know about the canvas!"), - _("Print Preview Failure"), wxOK); + wxFAIL_MSG(_T("wxPrintPreviewBase::RenderPage: must use " + "wxPrintPreviewBase::SetCanvas to let me " + "know about the canvas!")); + return FALSE; } m_previewCanvas->GetSize(&canvasWidth, &canvasHeight);