wxIsNumeric for values < 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2830bf19dc
commit
0ded21d1a1
@ -309,7 +309,7 @@ static bool wxIsNumeric(const wxString& val)
|
||||
for ( i = 0; i < (int)val.Length(); i++)
|
||||
{
|
||||
if ((!isdigit(val[i])) && (val[i] != '.'))
|
||||
if(!(i == 0) && (val[i] == '-'))
|
||||
if(!((i == 0) && (val[i] == '-')))
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user