From a8fde0a8d0443a8cc9d8a7ceb35471a3e005a854 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 4 Jul 2010 08:25:28 +0000 Subject: [PATCH] Fix assert in dataview sample, fixes #12194: wxDataViewCtrl sample asserts in wxArgNormalizer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dataview/dataview.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index ff15a033b7..8bba91a876 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -896,8 +896,9 @@ void MyFrame::OnValueChanged( wxDataViewEvent &event ) if (!m_log) return; - wxLogMessage( "wxEVT_DATAVIEW_ITEM_VALUE_CHANGED, Item Id: %d; Column: %d", - event.GetItem().GetID(), event.GetColumn() ); + wxString title = m_music_model->GetTitle( event.GetItem() ); + wxLogMessage( "wxEVT_DATAVIEW_ITEM_VALUE_CHANGED, Item Id: %s; Column: %d", + title, event.GetColumn() ); } void MyFrame::OnActivated( wxDataViewEvent &event )