From c18fa7a4b601b6a3d3212872f5f3fe62b289b005 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 16 Oct 2006 18:13:55 +0000 Subject: [PATCH] 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 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } -- 2.45.2