]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datavcmn.cpp
fix wrong clear selection (modified patch 1763916)
[wxWidgets.git] / src / common / datavcmn.cpp
index 54fb552de2e6d2e59c2fbc6ef36ea72870de3e1b..d021c5ba92807f527bc1a9420d70fa0b7e5facbd 100644 (file)
@@ -246,8 +246,8 @@ void wxDataViewIndexListModel::RowAppended()
 void wxDataViewIndexListModel::RowDeleted( unsigned int row )
 {
     wxDataViewItem item( m_hash[row] );
-    m_hash.RemoveAt( row );
     wxDataViewModel::ItemDeleted( wxDataViewItem(0), item );
+    m_hash.RemoveAt( row );
 }
 
 void wxDataViewIndexListModel::RowChanged( unsigned int row )