diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index d4e0d100a9..12b5b0bf14 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -2385,7 +2385,7 @@ bool wxDataViewMainWindow::ItemDeleted(const wxDataViewItem& parent, { wxDataViewVirtualListModel *list_model = (wxDataViewVirtualListModel*) GetModel(); - UpdateCount(list_model->GetCount()); + m_count = list_model->GetCount(); m_selection.OnItemDelete(GetRowByItem(item)); }