]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/prntbase.cpp
Improved selection mode handling in wxGrid::SelectBlock
[wxWidgets.git] / src / common / prntbase.cpp
index 6709e3721709b819f6fd60d842f167371e98446c..03182d5c25c1698fa380f0acb6c2a8758bfa2011 100644 (file)
@@ -195,10 +195,12 @@ void wxPreviewCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
     wxPaintDC dc(this);
     PrepareDC( dc );
 
+/*
 #ifdef __WXGTK__
     if (!GetUpdateRegion().IsEmpty())
         dc.SetClippingRegion( GetUpdateRegion() );
 #endif
+*/
 
     if (m_printPreview)
     {
@@ -655,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);