From: Václav Slavík Date: Wed, 11 Sep 2013 15:20:09 +0000 (+0000) Subject: Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5bac960d404f6fc82f6d7c4c697dd018657d24ab Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index c514809b01..862eabdbab 100644 --- a/src/xrc/xmlres.cpp +++ b/src/xrc/xmlres.cpp @@ -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); }