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
This commit is contained in:
Jaakko Salli
2009-02-07 13:16:36 +00:00
parent ad7aff71f5
commit 58fbf2616f

View File

@@ -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 );