]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug due to which all items in a virtual control stayed sometimes selected even...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 29 Jul 2002 18:29:44 +0000 (18:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 29 Jul 2002 18:29:44 +0000 (18:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 3c6eb23cf8839b28b37382c0d98fdc7fdd468082..174abe111f4162ed87878eaf8f5e538f4f09fb1f 100644 (file)
@@ -144,7 +144,7 @@ public:
     void SetItemCount(size_t count) { m_count = count; }
 
     // special case of SetItemCount(0)
     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") ); }
 
     // must be called when a new item is inserted/added
     void OnItemAdd(size_t item) { wxFAIL_MSG( _T("TODO") ); }