X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb60902e0493d6507aa4a5092cef5698877d1f66..aa5e1f75d9cc30fccc4c5e306c584aa2db5f2c40:/src/common/string.cpp?ds=sidebyside diff --git a/src/common/string.cpp b/src/common/string.cpp index cd934faa9e..bd4dc94a62 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -910,6 +910,8 @@ bool wxString::IsWord() const bool wxString::IsNumber() const { const wxChar *s = (const wxChar*) *this; + if (wxStrlen(s)) + if ((s[0] == '-') || (s[0] == '+')) s++; while(*s){ if(!wxIsdigit(*s)) return(FALSE); s++;