From 8767fe35a33404ed1c9697313ae701683960ae69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 15 Aug 2000 21:44:04 +0000 Subject: [PATCH] fixed wxListCtrl::SetItem -- changing attributes of item with attributes already set had no effect git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8108 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 cbe91c8878..b2febb8436 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -632,6 +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 m_attrs.Put(item.iItem, (wxObject *)new wxListItemAttr(*info.GetAttributes())); m_hasAnyAttr = TRUE;