From ace9bc269743dba4a1125f32778c7eab58b388b1 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Mon, 24 May 2010 13:09:36 +0000 Subject: [PATCH] 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 --- src/propgrid/property.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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() ) -- 2.45.2