X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/050e7ed73b61d8503656297fc12799ffd0f5bbfe..b6f4144e596cdf8e862e513b7f7c09022a664137:/include/wx/listctrl.h diff --git a/include/wx/listctrl.h b/include/wx/listctrl.h index 484670d111..1907ff19fd 100644 --- a/include/wx/listctrl.h +++ b/include/wx/listctrl.h @@ -204,7 +204,8 @@ public: m_attr(NULL) { // copy list item attributes - m_attr = new wxListItemAttr(*item.GetAttributes()); + if( item.HasAttributes() ) + m_attr = new wxListItemAttr(*item.GetAttributes()); } virtual ~wxListItem() { delete m_attr; }