From: Jaakko Salli Date: Mon, 24 May 2010 13:09:36 +0000 (+0000) Subject: Always call OnSetValue() for a property when values are being set for its children... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ace9bc269743dba4a1125f32778c7eab58b388b1 Always call OnSetValue() for a property when values are being set for its children (fixes #12085) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index bfa70e3838..93067a10f6 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -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() )