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:
parent
f1d6804f7c
commit
c18fa7a4b6
@ -888,7 +888,7 @@ void wxListItemData::SetItem( const wxListItem &info )
|
|||||||
if ( info.HasAttributes() )
|
if ( info.HasAttributes() )
|
||||||
{
|
{
|
||||||
if ( m_attr )
|
if ( m_attr )
|
||||||
*m_attr = *info.GetAttributes();
|
m_attr->AssignFrom(*info.GetAttributes());
|
||||||
else
|
else
|
||||||
m_attr = new wxListItemAttr(*info.GetAttributes());
|
m_attr = new wxListItemAttr(*info.GetAttributes());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user