]> 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 8ca74fb4d8881fc7c1008268b612ee82e3a6e0e3..03182d5c25c1698fa380f0acb6c2a8758bfa2011 100644 (file)
@@ -195,6 +195,13 @@ void wxPreviewCanvas::OnPaint(wxPaintEvent& WXUNUSED(event))
     wxPaintDC dc(this);
     PrepareDC( dc );
 
+/*
+#ifdef __WXGTK__
+    if (!GetUpdateRegion().IsEmpty())
+        dc.SetClippingRegion( GetUpdateRegion() );
+#endif
+*/
+
     if (m_printPreview)
     {
         m_printPreview->PaintPage(this, dc);
@@ -650,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);