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:
parent
dda36afd4a
commit
0bb309f75c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user