Merge new item attributes if any are already existing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-10-16 18:13:55 +00:00
parent f1d6804f7c
commit c18fa7a4b6

View File

@ -888,7 +888,7 @@ void wxListItemData::SetItem( const wxListItem &info )
if ( info.HasAttributes() )
{
if ( m_attr )
*m_attr = *info.GetAttributes();
m_attr->AssignFrom(*info.GetAttributes());
else
m_attr = new wxListItemAttr(*info.GetAttributes());
}