]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
even more fixes to last-minute wxFileSystem mods
[wxWidgets.git] / src / generic / listctrl.cpp
index 51f600fa5b09dd23d5ebade1aee250e1ff59acbd..85505af13fda94135d6079116236de0bb9067a5f 100644 (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 )