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
This commit is contained in:
Václav Slavík 2000-08-22 21:56:52 +00:00
parent 136edc27f9
commit 525fd27d24

View File

@ -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;