>From 1e2e157f012238a004f2f8cbc258a09f6ef9cfd7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 28 Aug 2015 19:18:52 +0200 Subject: [PATCH] Use correct type for the first column renderer in the census view. The type of the renderer must be consistent with the type returned from CensusViewDataViewModel::GetColumnType() and the actual type of the wxVariant returned by GetValueByRow(), which are both "long" and not "string". This didn't really result in any problem in the generic implementation but did result in a lot of debug errors when using wxGTK. --- census_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/census_view.cpp b/census_view.cpp index 1df0765..8d5f9ea 100644 --- a/census_view.cpp +++ b/census_view.cpp @@ -1157,7 +1157,7 @@ void CensusView::update_visible_columns() list_window_->AppendColumn (new(wx) wxDataViewColumn ("Cell" - ,new(wx) wxDataViewTextRenderer("string", wxDATAVIEW_CELL_INERT) + ,new(wx) wxDataViewTextRenderer("long", wxDATAVIEW_CELL_INERT) ,CensusViewDataViewModel::Col_CellNum ,width ,wxALIGN_LEFT -- 2.1.0