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
This commit is contained in:
Jaakko Salli
2010-05-24 13:09:36 +00:00
parent 4090fe84c4
commit ace9bc2697

View File

@@ -1364,6 +1364,12 @@ void wxPGProperty::SetValue( wxVariant value, wxVariant* pList, int flags )
} }
i++; 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() ) if ( !value.IsNull() )