X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8eae94f532473d5cc022565a3c390b52c84ef7b..43f4e852a1b2ac37c3db6a2b87315192ac549191:/src/xrc/xh_listc.cpp diff --git a/src/xrc/xh_listc.cpp b/src/xrc/xh_listc.cpp index d0a7e78b04..b9a9c2d059 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); } @@ -148,7 +150,7 @@ void wxListCtrlXmlHandler::HandleListItem() if (HasParam(wxT("data"))) item.SetData(GetLong(wxT("data"))); if (HasParam(wxT("font"))) - item.SetFont(GetFont()); + item.SetFont(GetFont(wxT("font"), list)); if (HasParam(wxT("state"))) item.SetState(GetStyle(wxT("state"))); if (HasParam(wxT("textcolour")))