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