From: Julian Smart <julian@anthemion.co.uk>
Date: Tue, 8 Feb 2005 15:03:18 +0000 (+0000)
Subject: Set m_count to zero in DeleteAllItems
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2e3a3b9aff40d6d9314cf549e074fe710ab9917a

Set m_count to zero in DeleteAllItems


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp
index 90c122a4cc..cef12e2f49 100644
--- a/src/msw/listctrl.cpp
+++ b/src/msw/listctrl.cpp
@@ -1265,6 +1265,7 @@ bool wxListCtrl::DeleteItem(long item)
 // Deletes all items
 bool wxListCtrl::DeleteAllItems()
 {
+    m_count=0;
     return ListView_DeleteAllItems(GetHwnd()) != 0;
 }