]> git.saurik.com Git - wxWidgets.git/commitdiff
do not assert when the validator style == wxFILTER_NONE
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 14 Jan 2009 19:21:26 +0000 (19:21 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 14 Jan 2009 19:21:26 +0000 (19:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/valtext.cpp

index 2732e560b36e125ff316b8a44f11167625853701..a2f5c621ef88e72110ace298921b95b5a1990330 100644 (file)
@@ -170,6 +170,10 @@ bool wxTextValidator::Validate(wxWindow *parent)
 
     switch (m_validatorStyle)
     {
 
     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");
     case wxFILTER_INCLUDE_LIST:
         if ( m_includes.Index(val) == wxNOT_FOUND )
             errormsg = _("'%s' is invalid");