]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
relayout the window after adding/removing the columns (fixes a SF bug I closed a...
[wxWidgets.git] / src / gtk1 / window.cpp
index eab8a8917f3b7b9855768245c44ebc6fc3c594cf..2deaff54fe88910dcd0ed30a28c3b8e7c5a29432 100644 (file)
@@ -3454,6 +3454,14 @@ void wxWindowGTK::GtkSendPaintEvents()
     else
     // if (!m_clearRegion.IsEmpty())   // always send an erase event
     {
+        // If the clear region is empty, and the update region isn't,
+        // then we're going to clear more than we repaint,
+        // so let's make sure the two regions are in sync.
+        if (m_clearRegion.IsEmpty() && !m_updateRegion.IsEmpty())
+        {
+            m_clearRegion = m_updateRegion ;
+        }
+        
         wxWindowDC dc( (wxWindow*)this );
         dc.SetClippingRegion( m_clearRegion );