From 525fd27d2436693207bd2e7c01ed0c0c9019de14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 22 Aug 2000 21:56:52 +0000 Subject: [PATCH] fixed bug in wxListCtrl::SetItem (forgot to delete previous attribute from m_attrs) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 8634a74f8a..1481cda78c 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -632,7 +632,7 @@ bool wxListCtrl::SetItem(wxListItem& info) // check whether it has any custom attributes if ( info.HasAttributes() ) { - m_attrs.Delete(item.iItem); // remove existing attributes + delete m_attrs.Delete(item.iItem); // remove existing attributes m_attrs.Put(item.iItem, (wxObject *)new wxListItemAttr(*info.GetAttributes())); m_hasAnyAttr = TRUE; -- 2.50.0