From: Václav Slavík Date: Sun, 7 Aug 2011 17:29:50 +0000 (+0000) Subject: Use ChangeCurrentRow() in wxDataViewMainWindow::ItemDeleted(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8c7b8711566dd58878106b78f31f5b9e331432a7 Use ChangeCurrentRow() in wxDataViewMainWindow::ItemDeleted(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index a355dd1527..34ae5bc84e 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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();