From acba2390e16b3f8855714c05fa034c8641039352 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 1 Aug 2014 15:39:23 +0000 Subject: [PATCH] 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 --- src/propgrid/property.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index acb4ef1536..c6d697681a 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -1984,7 +1984,7 @@ void wxPGProperty::SetChoiceSelection( int newValue ) } else // if ( valueType == wxPG_VARIANT_TYPE_LONG ) { - SetValue( (long) newValue ); + SetValue( m_choices.GetValue(newValue) ); } }