]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix wxXmlResourceHandler::GetImageList() to use specified size.
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 16 Jul 2011 10:04:54 +0000 (10:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 16 Jul 2011 10:04:54 +0000 (10:04 +0000)
Fixes #13319 (patch).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xmlres.cpp

index 6e393adc42ac50481aecfbc96092a1eaa69620a4..95525ac90a0af2e8850cc73b58a85ac8fcd5506e 100644 (file)
@@ -1961,7 +1961,7 @@ wxImageList *wxXmlResourceHandler::GetImageList(const wxString& param)
         {
             if (n->GetType() == wxXML_ELEMENT_NODE && n->GetName() == parambitmap)
             {
         {
             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.
                 if ( !imagelist )
                 {
                     // We need the real image list size to create it.