From 5b061713ead8efcd266f9eebe50f77358e07b651 Mon Sep 17 00:00:00 2001 From: David Surovell Date: Thu, 20 Apr 2006 18:36:22 +0000 Subject: [PATCH] fix for prior commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 9056462ed1..285cfeda4f 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -4287,15 +4287,15 @@ bool wxGrid::SetTable( wxGridTableBase *table, bool takeOwnership, if (m_ownTable) { - wxGridTableBase *t=m_table; - m_table=0; + wxGridTableBase *t = m_table; + m_table = NULL; delete t; } delete m_selection; - m_table = 0; - m_selection = 0; + m_table = NULL; + m_selection = NULL; m_numRows = 0; m_numCols = 0; } @@ -6118,7 +6118,7 @@ bool wxGrid::ProcessTableMessage( wxGridTableMessage& msg ) } // The behaviour of this function depends on the grid table class -// Clear() function. For the default wxGridStringTable class the +// Clear() function. For the default wxGridStringTable class the // behavious is to replace all cell contents with wxEmptyString but // not to change the number of rows or cols. // @@ -6130,7 +6130,7 @@ void wxGrid::ClearGrid() DisableCellEditControl(); m_table->Clear(); - if ( !GetBatchCount() + if (!GetBatchCount()) m_gridWin->Refresh(); } } -- 2.45.2