From: Jaakko Salli Date: Sat, 7 Feb 2009 13:16:36 +0000 (+0000) Subject: Added workaround for a bug that causes splitters not be drawn correctly if GetUpdateR... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58fbf2616ff19dca7b10841a3819afcd6cd5d140?ds=inline Added workaround for a bug that causes splitters not be drawn correctly if GetUpdateRegion().GetBox() in paint event does not cover the entire grid width git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index c5167ba145..29fde9f3a0 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -364,6 +364,12 @@ void wxPGCanvas::OnPaint( wxPaintEvent& WXUNUSED(event) ) // 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 );