]> git.saurik.com Git - wxWidgets.git/commitdiff
Another try at committing this
authorJulian Smart <julian@anthemion.co.uk>
Wed, 11 Sep 2002 14:19:08 +0000 (14:19 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 11 Sep 2002 14:19:08 +0000 (14:19 +0000)
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

src/generic/grid.cpp

index b2ca536bfa6cfc84ad1b28d32578990de2cf05fa..48da8a20424aad9a5ee399eaf13370dbdc9b6f54 100644 (file)
@@ -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
     {