Don't call a function that might do drawing when setting a null image list
(might be deleting the tree control) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1861,7 +1861,10 @@ void wxGenericTreeCtrl::SetImageList(wxImageList *imageList)
|
|||||||
m_imageListNormal = imageList;
|
m_imageListNormal = imageList;
|
||||||
m_ownsImageListNormal = FALSE;
|
m_ownsImageListNormal = FALSE;
|
||||||
m_dirty = TRUE;
|
m_dirty = TRUE;
|
||||||
CalculateLineHeight();
|
// 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)
|
||||||
|
Reference in New Issue
Block a user