fix for prior commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4287,15 +4287,15 @@ bool wxGrid::SetTable( wxGridTableBase *table, bool takeOwnership,
|
|||||||
|
|
||||||
if (m_ownTable)
|
if (m_ownTable)
|
||||||
{
|
{
|
||||||
wxGridTableBase *t=m_table;
|
wxGridTableBase *t = m_table;
|
||||||
m_table=0;
|
m_table = NULL;
|
||||||
delete t;
|
delete t;
|
||||||
}
|
}
|
||||||
|
|
||||||
delete m_selection;
|
delete m_selection;
|
||||||
|
|
||||||
m_table = 0;
|
m_table = NULL;
|
||||||
m_selection = 0;
|
m_selection = NULL;
|
||||||
m_numRows = 0;
|
m_numRows = 0;
|
||||||
m_numCols = 0;
|
m_numCols = 0;
|
||||||
}
|
}
|
||||||
@@ -6130,7 +6130,7 @@ void wxGrid::ClearGrid()
|
|||||||
DisableCellEditControl();
|
DisableCellEditControl();
|
||||||
|
|
||||||
m_table->Clear();
|
m_table->Clear();
|
||||||
if ( !GetBatchCount()
|
if (!GetBatchCount())
|
||||||
m_gridWin->Refresh();
|
m_gridWin->Refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user