]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList().
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Sep 2013 15:20:09 +0000 (15:20 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Sep 2013 15:20:09 +0000 (15:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xmlres.cpp

index c514809b0101f0dbc64e3573a77459f904c94862..862eabdbab451d94bc29fe45bc2b4c5dd885fa9a 100644 (file)
@@ -1962,7 +1962,7 @@ wxImageList *wxXmlResourceHandlerImpl::GetImageList(const wxString& param)
                         size = icon.GetSize();
 
                     // We use the mask by default.
-                    bool mask = !HasParam(wxS("mask")) || GetBool(wxS("mask"));
+                    bool mask = GetBool(wxS("mask"), true);
 
                     imagelist = new wxImageList(size.x, size.y, mask);
                 }