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
This commit is contained in:
parent
0915bc4d71
commit
d8eae94f53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user