From 2e3a3b9aff40d6d9314cf549e074fe710ab9917a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 8 Feb 2005 15:03:18 +0000 Subject: [PATCH] Set m_count to zero in DeleteAllItems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.45.2