fixed crash introduced by recently applied autowidth patch (patch 1171455)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2263,6 +2263,7 @@ wxListMainWindow::~wxListMainWindow()
|
|||||||
{
|
{
|
||||||
DoDeleteAllItems();
|
DoDeleteAllItems();
|
||||||
WX_CLEAR_LIST(wxListHeaderDataList, m_columns);
|
WX_CLEAR_LIST(wxListHeaderDataList, m_columns);
|
||||||
|
WX_CLEAR_ARRAY(m_aColWidths);
|
||||||
|
|
||||||
delete m_highlightBrush;
|
delete m_highlightBrush;
|
||||||
delete m_highlightUnfocusedBrush;
|
delete m_highlightUnfocusedBrush;
|
||||||
@@ -4353,7 +4354,7 @@ void wxListMainWindow::DoDeleteAllItems()
|
|||||||
ResetVisibleLinesRange();
|
ResetVisibleLinesRange();
|
||||||
for (size_t i = 0; i < m_aColWidths.GetCount(); i++)
|
for (size_t i = 0; i < m_aColWidths.GetCount(); i++)
|
||||||
{
|
{
|
||||||
delete m_aColWidths.Item(i);
|
m_aColWidths.Item(i)->bNeedsUpdate = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4370,6 +4371,7 @@ void wxListMainWindow::DeleteAllItems()
|
|||||||
void wxListMainWindow::DeleteEverything()
|
void wxListMainWindow::DeleteEverything()
|
||||||
{
|
{
|
||||||
WX_CLEAR_LIST(wxListHeaderDataList, m_columns);
|
WX_CLEAR_LIST(wxListHeaderDataList, m_columns);
|
||||||
|
WX_CLEAR_ARRAY(m_aColWidths);
|
||||||
|
|
||||||
DeleteAllItems();
|
DeleteAllItems();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user