]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcclient.cpp
(failed) attempts at fixing menu bar swapping
[wxWidgets.git] / src / gtk / dcclient.cpp
index 1dbaf55b39bcf3d0fe50e7709f878a9d90378b23..0e930e4cfff2c67194acc850d5ab548f57dce455 100644 (file)
@@ -2019,7 +2019,10 @@ wxPaintDC::wxPaintDC()
 wxPaintDC::wxPaintDC( wxWindow *win )
   : wxWindowDC( win )
 {
-#if USE_PAINT_REGION    
+#if USE_PAINT_REGION
+    if (!win->m_clipPaintRegion)
+        return;
+        
     m_paintClippingRegion = win->GetUpdateRegion();
     m_currentClippingRegion.Union( m_paintClippingRegion );