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:
@@ -309,7 +309,7 @@ static bool wxIsNumeric(const wxString& val)
|
|||||||
for ( i = 0; i < (int)val.Length(); i++)
|
for ( i = 0; i < (int)val.Length(); i++)
|
||||||
{
|
{
|
||||||
if ((!isdigit(val[i])) && (val[i] != '.'))
|
if ((!isdigit(val[i])) && (val[i] != '.'))
|
||||||
if(!(i == 0) && (val[i] == '-'))
|
if(!((i == 0) && (val[i] == '-')))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Reference in New Issue
Block a user