Fix wxPGProperty::SetChoiceSelection
When selected choice is changed then set as selected value the value corresponding to the new index, not the index itself. Closes #16401. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
965224405a
commit
acba2390e1
@ -1984,7 +1984,7 @@ void wxPGProperty::SetChoiceSelection( int newValue )
|
||||
}
|
||||
else // if ( valueType == wxPG_VARIANT_TYPE_LONG )
|
||||
{
|
||||
SetValue( (long) newValue );
|
||||
SetValue( m_choices.GetValue(newValue) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user