]> git.saurik.com Git - wxWidgets.git/commitdiff
refresh tree item after changing its icon so that the change is visible
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 10 Jul 2006 22:28:19 +0000 (22:28 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 10 Jul 2006 22:28:19 +0000 (22:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index 69c09c7d545947c46710d1b0c637b3b29488b901..ef013be6f74d82d57b40e2d62af0e14d04b86d26 100644 (file)
@@ -1013,6 +1013,8 @@ void wxTreeCtrl::SetItemImage(const wxTreeItemId& item, int image,
         return;
 
     data->SetImage(image, which);
+
+    RefreshItem(item);
 }
 
 wxTreeItemParam *wxTreeCtrl::GetItemParam(const wxTreeItemId& item) const