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
This commit is contained in:
@@ -657,8 +657,10 @@ bool wxPrintPreviewBase::RenderPage(int pageNum)
|
|||||||
|
|
||||||
if (!m_previewCanvas)
|
if (!m_previewCanvas)
|
||||||
{
|
{
|
||||||
wxMessageBox(_("wxPrintPreviewBase::RenderPage: must use wxPrintPreviewBase::SetCanvas to let me know about the canvas!"),
|
wxFAIL_MSG(_T("wxPrintPreviewBase::RenderPage: must use "
|
||||||
_("Print Preview Failure"), wxOK);
|
"wxPrintPreviewBase::SetCanvas to let me "
|
||||||
|
"know about the canvas!"));
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
m_previewCanvas->GetSize(&canvasWidth, &canvasHeight);
|
m_previewCanvas->GetSize(&canvasWidth, &canvasHeight);
|
||||||
|
Reference in New Issue
Block a user