From: Julian Smart Date: Wed, 30 Apr 2003 09:43:03 +0000 (+0000) Subject: Allow 'e' or 'E' in numeric text. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7102c47355e27d55f86d42cad4c2c1edfb533ae9?ds=inline Allow 'e' or 'E' in numeric text. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index e527198cbc..252793377a 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -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; }