From 229653c99e1d679aab15772a4a25909ca52c4d94 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 29 Jul 2002 18:29:44 +0000 Subject: [PATCH] fixed bug due to which all items in a virtual control stayed sometimes selected even after Clear()ing it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 3c6eb23cf8..174abe111f 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -144,7 +144,7 @@ public: void SetItemCount(size_t count) { m_count = count; } // special case of SetItemCount(0) - void Clear() { m_itemsSel.Clear(); m_count = 0; } + void Clear() { m_itemsSel.Clear(); m_count = 0; m_defaultState = false; } // must be called when a new item is inserted/added void OnItemAdd(size_t item) { wxFAIL_MSG( _T("TODO") ); } -- 2.45.2