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);
|
||||
v.MakeLower();
|
||||
if (!v) return defaultv;
|
||||
else return v == _T("1") || v == _T("t") || v == _T("yes") ||
|
||||
v == _T("on") || v == _T("true");
|
||||
else return (v == _T("1"));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user