]> git.saurik.com Git - wxWidgets.git/commitdiff
Always call OnSetValue() for a property when values are being set for its children...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 24 May 2010 13:09:36 +0000 (13:09 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 24 May 2010 13:09:36 +0000 (13:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/property.cpp

index bfa70e38386b853ae4918c977f3f7e994ef3d1c3..93067a10f669c79bf46c36058e9589f249d091b2 100644 (file)
@@ -1364,6 +1364,12 @@ void wxPGProperty::SetValue( wxVariant value, wxVariant* pList, int flags )
                 }
                 i++;
             }
+
+            // Always call OnSetValue() for a parent property (do not call it
+            // here if the value is non-null because it will then be called
+            // below)
+            if ( value.IsNull() )
+                OnSetValue();
         }
 
         if ( !value.IsNull() )