]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datavcmn.cpp
Don't set cell value in wxDataViewEvent in one place only.
[wxWidgets.git] / src / common / datavcmn.cpp
index 881fc24cd1248a79d0e4f02a43447695eb04a8f3..69301bc8a189ca6adb8485370d346a0cdc0ea836 100644 (file)
@@ -2184,10 +2184,7 @@ void wxDataViewTreeStore::DeleteItem( const wxDataViewItem& item )
     wxDataViewTreeStoreContainerNode *parent_node = FindContainerNode( parent_item );
     if (!parent_node) return;
 
-    wxDataViewTreeStoreContainerNode *node = FindContainerNode( item );
-    if (!node) return;
-
-    parent_node->GetChildren().DeleteObject( node );
+    parent_node->GetChildren().DeleteObject( FindNode(item) );
 }
 
 void wxDataViewTreeStore::DeleteChildren( const wxDataViewItem& item )