From f5f688eddd190d7079319b589ab6a54b202dde15 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 24 Aug 2007 09:32:20 +0000 Subject: [PATCH] Make ::SetValue return a bool git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dataview/dataview.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/samples/dataview/dataview.cpp b/samples/dataview/dataview.cpp index 09b104861c..e46d35b60d 100644 --- a/samples/dataview/dataview.cpp +++ b/samples/dataview/dataview.cpp @@ -240,11 +240,12 @@ public: MyMusicModelNode *node = (MyMusicModelNode*) item.GetID(); switch (col) { - case 0: node->m_title = variant.GetString(); break; - case 1: node->m_artist = variant.GetString(); break; - case 2: node->m_year = variant.GetString(); break; + case 0: node->m_title = variant.GetString(); return true; + case 1: node->m_artist = variant.GetString(); return true; + case 2: node->m_year = variant.GetString(); return true; default: wxLogError( "MyMusicModel::SetValue: wrong column" ); } + return false; } virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const