]> git.saurik.com Git - wxWidgets.git/commitdiff
validators now validate again
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 26 May 1999 12:39:50 +0000 (12:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 26 May 1999 12:39:50 +0000 (12:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index e8999d0f1ad3f15c24ae3fcb09d2a3f55ac1aa72..12e2f11fef3a0c00a5c129b8d6c93716f1890f1a 100644 (file)
@@ -624,7 +624,7 @@ bool wxWindowBase::Validate()
     {
         wxWindowBase *child = node->GetData();
         wxValidator *validator = child->GetValidator();
     {
         wxWindowBase *child = node->GetData();
         wxValidator *validator = child->GetValidator();
-        if ( validator && validator->Validate((wxWindow *)this) )
+        if ( validator && !validator->Validate((wxWindow *)this) )
         {
             return FALSE;
         }
         {
             return FALSE;
         }