diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index d47af77952..eea37b0384 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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()); }