]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxListCtrl::SetItem -- changing attributes of item with attributes already...
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 15 Aug 2000 21:44:04 +0000 (21:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 15 Aug 2000 21:44:04 +0000 (21:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index cbe91c88783de44fcd73d29b24e29821efea4ac0..b2febb84362ef4b014b4c269c284fed6230b48d7 100644 (file)
@@ -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;