wxVariant list used to translate between list of property child values and composite value string now maps values by names instead of labels. Naturally this means properties can no longer have empty name (this change allows using identical labels under same parent property. Ported from wxpropgrid SVN trunk)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2849,13 +2849,13 @@ bool wxPropertyGrid::PerformValidation( wxPGProperty* p, wxVariant& pendingValue
|
||||
wxVariant bcpPendingList;
|
||||
|
||||
listValue = pendingValue;
|
||||
listValue.SetName(p->GetLabel());
|
||||
listValue.SetName(p->GetBaseName());
|
||||
|
||||
while ( pwc &&
|
||||
(pwc->HasFlag(wxPG_PROP_AGGREGATE) || pwc->HasFlag(wxPG_PROP_COMPOSED_VALUE)) )
|
||||
{
|
||||
wxVariantList tempList;
|
||||
wxVariant lv(tempList, pwc->GetLabel());
|
||||
wxVariant lv(tempList, pwc->GetBaseName());
|
||||
lv.Append(listValue);
|
||||
listValue = lv;
|
||||
pPendingValue = &listValue;
|
||||
|
Reference in New Issue
Block a user