]> git.saurik.com Git - wxWidgets.git/commitdiff
make SetValue return a value
authorRobert Roebling <robert@roebling.de>
Wed, 29 Aug 2007 20:09:28 +0000 (20:09 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 29 Aug 2007 20:09:28 +0000 (20:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dataview/dataview.cpp

index 0f5fc5de166ed264b4d5b38d688b2f2d523dc8e6..c55e399eb520243a32947da8c0e5357b6a82ee94 100644 (file)
@@ -299,11 +299,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.GetLong(); 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.GetLong(); return true;
             default: wxLogError( "MyMusicModel::SetValue: wrong column" );
         }
+        return false;
     }
 
     virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const