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:
@@ -364,6 +364,12 @@ void wxPGCanvas::OnPaint( wxPaintEvent& WXUNUSED(event) )
|
|||||||
// Update everything inside the box
|
// Update everything inside the box
|
||||||
wxRect r = GetUpdateRegion().GetBox();
|
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
|
// Repaint this rectangle
|
||||||
pg->DrawItems( dc, r.y, r.y + r.height, &r );
|
pg->DrawItems( dc, r.y, r.y + r.height, &r );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user