]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/dataview/dataview.cpp
Fix assert in dataview sample, fixes #12194: wxDataViewCtrl sample asserts in wxArgNo...
[wxWidgets.git] / samples / dataview / dataview.cpp
index ff15a033b741d64cdde12b40a35e7876e76d1aa0..8bba91a876ec86c36ed03c1d8411333c9eb4959b 100644 (file)
@@ -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 )