From: Stefan Neis Date: Sat, 21 Jun 2003 08:40:06 +0000 (+0000) Subject: Reverted patch [ 746201 ] (partially) because of unwanted side-effects X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/75f7af39d12e17eecf807ca65bffd19adce581ca Reverted patch [ 746201 ] (partially) because of unwanted side-effects to grids with 0 rows _or_ 0 columns. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 511bed5c93..45562e16be 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -5770,7 +5770,6 @@ bool wxGrid::InsertRows( int pos, int numRows, bool WXUNUSED(updateLabels) ) DisableCellEditControl(); bool done = m_table->InsertRows( pos, numRows ); - m_numRows = m_table->GetNumberRows(); return done; // the table will have sent the results of the insert row @@ -5793,7 +5792,6 @@ bool wxGrid::AppendRows( int numRows, bool WXUNUSED(updateLabels) ) if ( m_table ) { bool done = m_table && m_table->AppendRows( numRows ); - m_numRows = m_table->GetNumberRows(); return done; // the table will have sent the results of the append row // operation to this view object as a grid table message @@ -5818,7 +5816,6 @@ bool wxGrid::DeleteRows( int pos, int numRows, bool WXUNUSED(updateLabels) ) DisableCellEditControl(); bool done = m_table->DeleteRows( pos, numRows ); - m_numRows = m_table->GetNumberRows(); return done; // the table will have sent the results of the delete row // operation to this view object as a grid table message @@ -5843,7 +5840,6 @@ bool wxGrid::InsertCols( int pos, int numCols, bool WXUNUSED(updateLabels) ) DisableCellEditControl(); bool done = m_table->InsertCols( pos, numCols ); - m_numCols = m_table->GetNumberCols(); return done; // the table will have sent the results of the insert col // operation to this view object as a grid table message @@ -5865,7 +5861,6 @@ bool wxGrid::AppendCols( int numCols, bool WXUNUSED(updateLabels) ) if ( m_table ) { bool done = m_table->AppendCols( numCols ); - m_numCols = m_table->GetNumberCols(); return done; // the table will have sent the results of the append col // operation to this view object as a grid table message @@ -5890,7 +5885,6 @@ bool wxGrid::DeleteCols( int pos, int numCols, bool WXUNUSED(updateLabels) ) DisableCellEditControl(); bool done = m_table->DeleteCols( pos, numCols ); - m_numCols = m_table->GetNumberCols(); return done; // the table will have sent the results of the delete col // operation to this view object as a grid table message