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:
Vadim Zeitlin 2002-12-06 23:40:11 +00:00
parent c1eb1102aa
commit 285013b384

View File

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