]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/variant.cpp
look in codeset-specific directory for locale files first, then fallback to the one...
[wxWidgets.git] / src / common / variant.cpp
index ae13b2a4337403e6bc84607db6743d7d2a3b84d2..bf9045cbb54c1642c9d4568d4c1840468a43264c 100644 (file)
@@ -2038,9 +2038,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") || val == wxT('1') )
             *value = true;
-        else if (val == wxT("false") || val == wxT("no"))
+        else if (val == wxT("false") || val == wxT("no") || val == wxT('0') )
             *value = false;
         else
             return false;