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:
Václav Slavík 2000-07-26 21:34:36 +00:00
parent d3e41b770e
commit 10461e195f

View File

@ -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"));
}