(might be deleting the tree control)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15577
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_imageListNormal = imageList;
m_ownsImageListNormal = FALSE;
m_dirty = TRUE;
m_imageListNormal = imageList;
m_ownsImageListNormal = FALSE;
m_dirty = TRUE;
+ // Don't do any drawing if we're setting the list to NULL,
+ // since we may be in the process of deleting the tree control.
+ if (imageList)
+ CalculateLineHeight();
}
void wxGenericTreeCtrl::SetStateImageList(wxImageList *imageList)
}
void wxGenericTreeCtrl::SetStateImageList(wxImageList *imageList)