From: Julian Smart Date: Wed, 11 Sep 2002 14:19:08 +0000 (+0000) Subject: Another try at committing this X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/31370adbc1d517c8749c99ad1c05379b8974b068 Another try at committing this Reverted previous 'fixes' now that the array bug has been cured Prevented dragging dividers outside cells (this would cause an assert) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index b2ca536bfa..48da8a2042 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3092,8 +3092,7 @@ bool wxGridStringTable::DeleteRows( size_t pos, size_t numRows ) if ( numRows >= curNumRows ) { - for (size_t i=0; i< m_data.GetCount(); i++) m_data[i].Clear(); - m_data.Empty(); // don't release memory just yet + m_data.Clear(); // don't release memory just yet } else {