avoid flicker when doing SetItem() in non report mode (slightly extended patch 647970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c1eb1102aa
commit
285013b384
@ -3806,16 +3806,10 @@ void wxListMainWindow::SetItem( wxListItem &item )
|
||||
line->SetItem( item.m_col, item );
|
||||
}
|
||||
|
||||
if ( InReportView() )
|
||||
{
|
||||
// just refresh the line to show the new value of the text/image
|
||||
RefreshLine((size_t)id);
|
||||
}
|
||||
else // !report
|
||||
{
|
||||
// refresh everything (resulting in horrible flicker - FIXME!)
|
||||
m_dirty = TRUE;
|
||||
}
|
||||
// update the item on screen
|
||||
wxRect rectItem;
|
||||
GetItemRect(id, rectItem);
|
||||
RefreshRect(rectItem);
|
||||
}
|
||||
|
||||
void wxListMainWindow::SetItemState( long litem, long state, long stateMask )
|
||||
|
Loading…
Reference in New Issue
Block a user