From 0ded21d1a195eabfd65e6ae20651a081195eb697 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Tue, 15 Dec 1998 09:19:45 +0000 Subject: [PATCH] wxIsNumeric for values < 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/valtext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index f1cef09edc..299ef6042a 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -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; -- 2.45.2