X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e026ad22ef21bf59b87c0933194535227c9ce2e..7e2003703c02850cca0e962688b070314c95175c:/src/common/valtext.cpp 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.");