Fix querying the value of wxEnumProperty in wxPropertyGridEditor.
Doing this changed the internal state of the control and resulted in the choice not being updated. Fix this by using wxPG_PROPERTY_SPECIFIC. Closes #15449. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1168,7 +1168,7 @@ bool wxPGChoiceEditor::GetValueFromControl( wxVariant& variant, wxPGProperty* pr
|
||||
property->IsValueUnspecified()
|
||||
)
|
||||
{
|
||||
return property->IntToValue( variant, index, 0 );
|
||||
return property->IntToValue(variant, index, wxPG_PROPERTY_SPECIFIC);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -1691,7 +1691,7 @@ bool wxPGCheckBoxEditor::GetValueFromControl( wxVariant& variant, wxPGProperty*
|
||||
property->IsValueUnspecified()
|
||||
)
|
||||
{
|
||||
return property->IntToValue(variant, index, 0);
|
||||
return property->IntToValue(variant, index, wxPG_PROPERTY_SPECIFIC);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user