]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed regression: in wxPropertyGrid::PerformValidation(), wxPGProperty::ValidateValue...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 8 Oct 2009 15:33:30 +0000 (15:33 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 8 Oct 2009 15:33:30 +0000 (15:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 18370b90df7aa76163f3c6f7fc1db799e731aa8b..3030939a1ac0a150fee294ca75563eebd5763d99 100644 (file)
@@ -2903,7 +2903,10 @@ bool wxPropertyGrid::PerformValidation( wxPGProperty* p, wxVariant& pendingValue
 
     m_validationInfo.m_failureBehavior = m_permanentValidationFailureBehavior;
 
-    if ( pendingValue.GetType() == wxPG_VARIANT_TYPE_LIST )
+    //
+    // Variant list a special value that cannot be validated
+    // by normal means.
+    if ( pendingValue.GetType() != wxPG_VARIANT_TYPE_LIST )
     {
         if ( !p->ValidateValue(pendingValue, m_validationInfo) )
             return false;