]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow 'e' or 'E' in numeric text.
authorJulian Smart <julian@anthemion.co.uk>
Wed, 30 Apr 2003 09:43:03 +0000 (09:43 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 30 Apr 2003 09:43:03 +0000 (09:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/valtext.cpp

index e527198cbc36a83279c0a52754a2569b181dcc6a..252793377ad2a1d16322b8880e7987736194c36a 100644 (file)
@@ -303,7 +303,7 @@ static bool wxIsNumeric(const wxString& val)
     {
         // Allow for "," (French) as well as "." -- in future we should
         // use wxSystemSettings or other to do better localisation
-        if ((!isdigit(val[i])) && (val[i] != '.') && (val[i] != ','))
+        if ((!isdigit(val[i])) && (val[i] != '.') && (val[i] != ',') && (val[i] != wxT('e')) && (val[i] != wxT('E')))
           if(!((i == 0) && (val[i] == '-')))
             return FALSE;
     }