]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT style...
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 16 Jul 2011 10:04:57 +0000 (10:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 16 Jul 2011 10:04:57 +0000 (10:04 +0000)
Fixes #13319 (patch).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_listc.cpp

index a6499e422aa3c91e967892019fc809235fd56d55..d0a7e78b0404fd547be288fa995ef3fde8f80884 100644 (file)
@@ -160,7 +160,7 @@ void wxListCtrlXmlHandler::HandleListItem()
     int image;
     if ( list->HasFlag(wxLC_ICON) )
         image = GetImageIndex(list, wxIMAGE_LIST_NORMAL);
-    else if ( list->HasFlag(wxLC_SMALL_ICON) )
+    else if ( list->HasFlag(wxLC_SMALL_ICON) || list->HasFlag(wxLC_REPORT) || list->HasFlag(wxLC_LIST) )
         image = GetImageIndex(list, wxIMAGE_LIST_SMALL);
     else
         image = wxNOT_FOUND;