Use ChangeCurrentRow() in wxDataViewMainWindow::ItemDeleted().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2011-08-07 17:29:50 +00:00
parent b625294905
commit 8c7b871156

View 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();