From 5bac960d404f6fc82f6d7c4c697dd018657d24ab Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 11 Sep 2013 15:20:09 +0000 Subject: [PATCH] Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xrc/xmlres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrc/xmlres.cpp b/src/xrc/xmlres.cpp index c514809..862eabd 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); } -- 2.7.4