Use correct variant type in generic wxDataViewChoiceByIndexRenderer

This solves the same problem as daa8fd03f3 did
for the GTK+ native version and ensures that the variant type at the renderer
level is consistent with the type of the values actually used with this
renderer (which are integers as they are indices).

Closes #17474.
This commit is contained in:
Vadim Zeitlin
2016-04-23 17:55:39 +02:00
parent 983f5f29a2
commit 2c9a435f46

View File

@@ -1778,6 +1778,7 @@ wxDataViewChoiceByIndexRenderer::wxDataViewChoiceByIndexRenderer( const wxArrayS
wxDataViewCellMode mode, int alignment ) :
wxDataViewChoiceRenderer( choices, mode, alignment )
{
m_variantType = wxS("long");
}
wxWindow* wxDataViewChoiceByIndexRenderer::CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value )