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
This commit is contained in:
@@ -232,7 +232,7 @@ wxString wxTextValidator::IsValid(const wxString& val) const
|
|||||||
return _("'%s' should only contain alphabetic characters.");
|
return _("'%s' should only contain alphabetic characters.");
|
||||||
if ( HasFlag(wxFILTER_ALPHANUMERIC) && !CheckString(wxIsalnum, val) )
|
if ( HasFlag(wxFILTER_ALPHANUMERIC) && !CheckString(wxIsalnum, val) )
|
||||||
return _("'%s' should only contain alphabetic or numeric characters.");
|
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.");
|
return _("'%s' should only contain digits.");
|
||||||
if ( HasFlag(wxFILTER_NUMERIC) && !wxIsNumeric(val) )
|
if ( HasFlag(wxFILTER_NUMERIC) && !wxIsNumeric(val) )
|
||||||
return _("'%s' should be numeric.");
|
return _("'%s' should be numeric.");
|
||||||
|
Reference in New Issue
Block a user