]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxFAIL_MSG, not wxMessageBox for programming errors
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2000 16:33:03 +0000 (16:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 9 Mar 2000 16:33:03 +0000 (16:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/prntbase.cpp

index 059fa64f8cb1685e33c81d7a5d6ee108c58fbe20..03182d5c25c1698fa380f0acb6c2a8758bfa2011 100644 (file)
@@ -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);