X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef18e792233801b3d92ea4302e54d0de627d348f..04fa04d8067d235ab45b5bc05b65f0679634b541:/src/xrc/xh_listc.cpp?ds=sidebyside diff --git a/src/xrc/xh_listc.cpp b/src/xrc/xh_listc.cpp index a6499e422a..acce070d34 100644 --- a/src/xrc/xh_listc.cpp +++ b/src/xrc/xh_listc.cpp @@ -128,6 +128,8 @@ void wxListCtrlXmlHandler::HandleListCol() HandleCommonItemAttrs(item); if (HasParam(wxT("width"))) item.SetWidth((int)GetLong(wxT("width"))); + if (HasParam(wxT("image"))) + item.SetImage((int)GetLong(wxT("image"))); list->InsertColumn(list->GetColumnCount(), item); } @@ -160,7 +162,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;