do not assert when the validator style == wxFILTER_NONE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi 2009-01-14 19:21:26 +00:00
parent 4aa1406671
commit 16d4ffde1e

View File

@ -170,6 +170,10 @@ bool wxTextValidator::Validate(wxWindow *parent)
switch (m_validatorStyle)
{
case wxFILTER_NONE:
// nothing to do...
break;
case wxFILTER_INCLUDE_LIST:
if ( m_includes.Index(val) == wxNOT_FOUND )
errormsg = _("'%s' is invalid");