From: Václav Slavík Date: Sat, 16 Jul 2011 10:04:54 +0000 (+0000) Subject: Fix wxXmlResourceHandler::GetImageList() to use specified size. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0915bc4d71a31bfa011b2f8705c17761216ecc4e Fix wxXmlResourceHandler::GetImageList() to use specified size. Fixes #13319 (patch). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index 6e393adc42..95525ac90a 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -1961,7 +1961,7 @@ wxImageList *wxXmlResourceHandler::GetImageList(const wxString& param) { if (n->GetType() == wxXML_ELEMENT_NODE && n->GetName() == parambitmap) { - wxIcon icon = GetIcon(n); + wxIcon icon = GetIcon(n, wxART_OTHER, size); if ( !imagelist ) { // We need the real image list size to create it.