From: Vadim Zeitlin Date: Sat, 24 May 2008 15:09:39 +0000 (+0000) Subject: compilation fix after the last change X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ec8bb9248e26a3c22b532a7eb8fdae05db7d88a2 compilation fix after the last change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/treectrl/treetest.cpp b/samples/treectrl/treetest.cpp index 354844f083..65aeff9692 100644 --- a/samples/treectrl/treetest.cpp +++ b/samples/treectrl/treetest.cpp @@ -1012,7 +1012,7 @@ void MyTreeCtrl::DoToggleIcon(const wxTreeItemId& item) : TreeCtrlIcon_Folder; SetItemImage(item, image, wxTreeItemIcon_Normal); - image = GetItemImage(item, TreeCtrlIcon_FolderSelected) == TreeCtrlIcon_FolderSelected + image = GetItemImage(item, wxTreeItemIcon_Selected) == TreeCtrlIcon_FolderSelected ? TreeCtrlIcon_FileSelected : TreeCtrlIcon_FolderSelected; SetItemImage(item, image, wxTreeItemIcon_Selected);