standardized syntax of bool properties: '1' means true, anything else false
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d3e41b770e
commit
10461e195f
@ -441,8 +441,7 @@ bool wxXmlResourceHandler::GetBool(const wxString& param, bool defaultv)
|
|||||||
wxString v = GetParamValue(param);
|
wxString v = GetParamValue(param);
|
||||||
v.MakeLower();
|
v.MakeLower();
|
||||||
if (!v) return defaultv;
|
if (!v) return defaultv;
|
||||||
else return v == _T("1") || v == _T("t") || v == _T("yes") ||
|
else return (v == _T("1"));
|
||||||
v == _T("on") || v == _T("true");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user