]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valtext.cpp
Corrected valtext.cpp for disabled controls; added Dialog Editor fixes
[wxWidgets.git] / src / common / valtext.cpp
index d3fa339c47ff0443e4fbea7935ab20cc0ef81162..7767ae2f185d13db4716a079f2293e06d56abe94 100644 (file)
@@ -128,9 +128,9 @@ bool wxTextValidator::Validate(wxWindow *parent)
 
     wxTextCtrl *control = (wxTextCtrl *) m_validatorWindow ;
 
-    // If window is disabled, don't validate
+    // If window is disabled, simply return
     if ( !control->Enabled() )
-        return FALSE;
+        return TRUE;
 
     wxString val(control->GetValue());