From: Francesco Montorsi Date: Wed, 14 Jan 2009 19:21:26 +0000 (+0000) Subject: do not assert when the validator style == wxFILTER_NONE X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/16d4ffde1e56eb0701210c7ff5d47185df065297 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 --- diff --git a/src/common/valtext.cpp b/src/common/valtext.cpp index 2732e560b3..a2f5c621ef 100644 --- a/src/common/valtext.cpp +++ b/src/common/valtext.cpp @@ -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");