X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c68273f974d3e5c5ba23ae43ce2d25a100388ff..0b7e6e7da208b6a95fb23cb50286a09dc90d96d2:/src/common/string.cpp?ds=sidebyside diff --git a/src/common/string.cpp b/src/common/string.cpp index 3f8cfe19fd..bd4dc94a62 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -113,7 +113,7 @@ extern const wxChar WXDLLEXPORT *wxEmptyString = &g_strEmpty.dummy; // function wxVsnprintfA (A for ANSI), should also find one for Unicode // strings in Unicode build #ifdef __WXMSW__ - #if (defined(__VISUALC__) || defined(wxUSE_NORLANDER_HEADERS)) && !defined(__MINGW32__) + #if defined(__VISUALC__) || wxUSE_NORLANDER_HEADERS #define wxVsnprintfA _vsnprintf #endif #else // !Windows @@ -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++;