From 90497db95b7e8ddbc6e0d1b66ce9d76283bd5ebf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 21 Mar 2010 11:06:36 +0000 Subject: [PATCH] Correct wxFILTER_DIGITS handling broken by r63582. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index ebd0c3cefc..795df492d6 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -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."); -- 2.45.2