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:
Artur Wieczorek 2014-08-01 15:39:23 +00:00
parent 965224405a
commit acba2390e1

View File

@ -1984,7 +1984,7 @@ void wxPGProperty::SetChoiceSelection( int newValue )
}
else // if ( valueType == wxPG_VARIANT_TYPE_LONG )
{
SetValue( (long) newValue );
SetValue( m_choices.GetValue(newValue) );
}
}