X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/08be21f56d5f60eddbd41c89f6dfe1a414a79f6e..50e55c13ea2da06b1b03069673ae45edd780fc99:/src/generic/listctrl.cpp?ds=sidebyside diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 6f02e43f3a..481654ecd8 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3181,10 +3181,14 @@ void wxListMainWindow::SetItem( wxListItem &item ) } } - // update the item on screen - wxRect rectItem; - GetItemRect(id, rectItem); - RefreshRect(rectItem); + // update the item on screen unless we're going to update everything soon + // anyhow + if ( !m_dirty ) + { + wxRect rectItem; + GetItemRect(id, rectItem); + RefreshRect(rectItem); + } } void wxListMainWindow::SetItemStateAll(long state, long stateMask)