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:
Mart Raudsepp 1998-12-15 09:19:45 +00:00
parent 2830bf19dc
commit 0ded21d1a1

View File

@ -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;