]> git.saurik.com Git - wxWidgets.git/commitdiff
Set m_count to zero in DeleteAllItems
authorJulian Smart <julian@anthemion.co.uk>
Tue, 8 Feb 2005 15:03:18 +0000 (15:03 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 8 Feb 2005 15:03:18 +0000 (15:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 90c122a4cce51ee2403b22d9fd156bb9dd422a6b..cef12e2f49ef5bbdd6387022074bcabb03dcd795 100644 (file)
@@ -1265,6 +1265,7 @@ bool wxListCtrl::DeleteItem(long item)
 // Deletes all items
 bool wxListCtrl::DeleteAllItems()
 {
 // Deletes all items
 bool wxListCtrl::DeleteAllItems()
 {
+    m_count=0;
     return ListView_DeleteAllItems(GetHwnd()) != 0;
 }
 
     return ListView_DeleteAllItems(GetHwnd()) != 0;
 }