From 771779ed912811d13ad82ff77eba3ea57d15e0c9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 Mar 2000 16:33:03 +0000 Subject: [PATCH] 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 --- src/common/prntbase.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.45.2