diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index e8999d0f1a..12e2f11fef 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -624,7 +624,7 @@ bool wxWindowBase::Validate() { wxWindowBase *child = node->GetData(); wxValidator *validator = child->GetValidator(); - if ( validator && validator->Validate((wxWindow *)this) ) + if ( validator && !validator->Validate((wxWindow *)this) ) { return FALSE; }