]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct wxFILTER_DIGITS handling broken by r63582.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Mar 2010 11:06:36 +0000 (11:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 21 Mar 2010 11:06:36 +0000 (11:06 +0000)
The fix in r63582 accidentally omitted the "!" in wxFILTER_DIGITS check.

Restore it.

Closes #11838.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63732 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/valtext.cpp

index ebd0c3cefc2f0481b6efff1bd82a5c1cf009d888..795df492d61539104a94a4daa09b7d7821140e0d 100644 (file)
@@ -232,7 +232,7 @@ wxString wxTextValidator::IsValid(const wxString& val) const
         return _("'%s' should only contain alphabetic characters.");
     if ( HasFlag(wxFILTER_ALPHANUMERIC) && !CheckString(wxIsalnum, val) )
         return _("'%s' should only contain alphabetic or numeric characters.");
-    if ( HasFlag(wxFILTER_DIGITS) && CheckString(wxIsdigit, val) )
+    if ( HasFlag(wxFILTER_DIGITS) && !CheckString(wxIsdigit, val) )
         return _("'%s' should only contain digits.");
     if ( HasFlag(wxFILTER_NUMERIC) && !wxIsNumeric(val) )
         return _("'%s' should be numeric.");