Fixed tree control redraw bug, which had nothing
ro do with scrolling. Someone just removed my use git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2993,7 +2993,7 @@ void wxGenericTreeCtrl::RefreshSubtree(wxGenericTreeItem *item)
|
||||
wxSize client = GetClientSize();
|
||||
|
||||
wxRect rect;
|
||||
CalcScrolledPosition(0, item->GetY(), &rect.x, &rect.y);
|
||||
CalcScrolledPosition(0, item->GetY(), NULL, &rect.y);
|
||||
rect.width = client.x;
|
||||
rect.height = client.y;
|
||||
|
||||
@@ -3007,7 +3007,7 @@ void wxGenericTreeCtrl::RefreshLine( wxGenericTreeItem *item )
|
||||
if (m_dirty) return;
|
||||
|
||||
wxRect rect;
|
||||
CalcScrolledPosition(0, item->GetY(), &rect.x, &rect.y);
|
||||
CalcScrolledPosition(0, item->GetY(), NULL, &rect.y);
|
||||
rect.width = GetClientSize().x;
|
||||
rect.height = GetLineHeight(item); //dc.GetCharHeight() + 6;
|
||||
|
||||
|
Reference in New Issue
Block a user