Check for attributes before copying them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -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; }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user