From: Václav Slavík Date: Tue, 15 Aug 2000 21:44:04 +0000 (+0000) Subject: fixed wxListCtrl::SetItem -- changing attributes of item with attributes already... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8767fe35a33404ed1c9697313ae701683960ae69 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 --- 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;