copare lower case

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-03-24 23:02:28 +00:00
parent dda36afd4a
commit 0bb309f75c

View File

@ -2019,9 +2019,9 @@ bool wxVariant::Convert(bool* value) const
{
wxString val(((wxVariantDataString*)GetData())->GetValue());
val.MakeLower();
if (val == wxT("TRUE") || val == wxT("yes"))
if (val == wxT("true") || val == wxT("yes"))
*value = TRUE;
else if (val == wxT("FALSE") || val == wxT("no"))
else if (val == wxT("false") || val == wxT("no"))
*value = FALSE;
else
return FALSE;