Fix choice of tree item icon for the selected state in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Nov 2011 12:02:07 +0000 (12:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 4 Nov 2011 12:02:07 +0000 (12:02 +0000)
commit6bb81c8e1ae2f7a0acc2535ebdfa776512cfe26f
tree778bff8688118f733f655bf86dd125682f643877
parent4878fbb880d2818b052a2d473f07f361f5187f77
Fix choice of tree item icon for the selected state in wxMSW.

The logic for selecting the item icon was broken when selected image was
specified as it was not taken into account as fallback for selected expanded
state so selected icon was used only for collapsed items.

Fix this by using the selected icon if it is specified and selected expanded
one is not.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/treectrl.cpp