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
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.");