]> git.saurik.com Git - wxWidgets.git/commitdiff
Use ChangeCurrentRow() in wxDataViewMainWindow::ItemDeleted().
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Aug 2011 17:29:50 +0000 (17:29 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 7 Aug 2011 17:29:50 +0000 (17:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index a355dd152742bee96d7cc7f0119ce318f92aa288..34ae5bc84e0685b3222955b89c93767ae52a4f49 100644 (file)
@@ -2064,7 +2064,7 @@ bool wxDataViewMainWindow::ItemDeleted(const wxDataViewItem& parent,
 
     // Change the current row to the last row if the current exceed the max row number
     if( m_currentRow > GetRowCount() )
-        m_currentRow = m_count - 1;
+        ChangeCurrentRow(m_count - 1);
 
     UpdateDisplay();