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:
@@ -2019,9 +2019,9 @@ bool wxVariant::Convert(bool* value) const
|
|||||||
{
|
{
|
||||||
wxString val(((wxVariantDataString*)GetData())->GetValue());
|
wxString val(((wxVariantDataString*)GetData())->GetValue());
|
||||||
val.MakeLower();
|
val.MakeLower();
|
||||||
if (val == wxT("TRUE") || val == wxT("yes"))
|
if (val == wxT("true") || val == wxT("yes"))
|
||||||
*value = TRUE;
|
*value = TRUE;
|
||||||
else if (val == wxT("FALSE") || val == wxT("no"))
|
else if (val == wxT("false") || val == wxT("no"))
|
||||||
*value = FALSE;
|
*value = FALSE;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user