From: Václav Slavík Date: Sat, 16 Jul 2011 10:04:57 +0000 (+0000) Subject: Fix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT style... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d8eae94f532473d5cc022565a3c390b52c84ef7b?ds=inline Fix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT styles too. Fixes #13319 (patch). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xh_listc.cpp b/src/xrc/xh_listc.cpp index a6499e422a..d0a7e78b04 100644 --- a/src/xrc/xh_listc.cpp +++ b/src/xrc/xh_listc.cpp @@ -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;