X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e409b62aaf6b333803027645ecc77de6c92cae2d..bc429ce01f519f3edae182b516cb15b8d2df54a7:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 952596d171..eea37b0384 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -39,6 +39,7 @@ #include "wx/timer.h" #include "wx/settings.h" #include "wx/dynarray.h" + #include "wx/dcclient.h" #include "wx/dcscreen.h" #include "wx/math.h" #endif @@ -887,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()); }