]> git.saurik.com Git - wxWidgets.git/commitdiff
Added workaround for a bug that causes splitters not be drawn correctly if GetUpdateR...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 7 Feb 2009 13:16:36 +0000 (13:16 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 7 Feb 2009 13:16:36 +0000 (13:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index c5167ba1457c6c8ccd9404d7921fa15bbef1b0fc..29fde9f3a0b6a17088b6069ffc88c45960ccdfe3 100644 (file)
@@ -364,6 +364,12 @@ void wxPGCanvas::OnPaint( wxPaintEvent& WXUNUSED(event) )
     // Update everything inside the box
     wxRect r = GetUpdateRegion().GetBox();
 
     // Update everything inside the box
     wxRect r = GetUpdateRegion().GetBox();
 
+    // FIXME: This is just a workaround for a bug that causes splitters not
+    //        to paint when other windows are being dragged over the grid.
+    wxRect fullRect = GetRect();
+    r.x = fullRect.x;
+    r.width = fullRect.width;
+
     // Repaint this rectangle
     pg->DrawItems( dc, r.y, r.y + r.height, &r );
 
     // Repaint this rectangle
     pg->DrawItems( dc, r.y, r.y + r.height, &r );