Allow 'e' or 'E' in numeric text.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -303,7 +303,7 @@ static bool wxIsNumeric(const wxString& val)
|
|||||||
{
|
{
|
||||||
// Allow for "," (French) as well as "." -- in future we should
|
// Allow for "," (French) as well as "." -- in future we should
|
||||||
// use wxSystemSettings or other to do better localisation
|
// 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] == '-')))
|
if(!((i == 0) && (val[i] == '-')))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user