Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
76b0f8384e
commit
5bac960d40
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user