From 2c9a435f461f219464bc021c9461cc98c1825610 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 23 Apr 2016 17:55:39 +0200 Subject: [PATCH] Use correct variant type in generic wxDataViewChoiceByIndexRenderer This solves the same problem as daa8fd03f3ad381d1f59d9106922e2d89cbf2e7c 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. --- src/common/datavcmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index a7f0ae1f0d..e4e5521bd8 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -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 )