]> git.saurik.com Git - wxWidgets.git/commitdiff
Insert row/col now uses the current position to determine where to insert.
authorRobin Dunn <robin@alldunn.com>
Wed, 16 Feb 2000 17:52:27 +0000 (17:52 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 16 Feb 2000 17:52:27 +0000 (17:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/newgrid/griddemo.cpp

index ac8dc4486b01479ebc9eb9d745a05dd5ccf4366c..bd333d2b25c9f3003b7deb2f8200447dc4a09712 100644 (file)
@@ -417,13 +417,13 @@ void GridFrame::SetGridLineColour( wxCommandEvent& WXUNUSED(ev) )
 
 void GridFrame::InsertRow( wxCommandEvent& WXUNUSED(ev) )
 {
-    grid->InsertRows( 0, 1 );
+    grid->InsertRows( grid->GetGridCursorRow(), 1 );
 }
 
 
 void GridFrame::InsertCol( wxCommandEvent& WXUNUSED(ev) )
 {
-    grid->InsertCols( 0, 1 );
+    grid->InsertCols( grid->GetGridCursorCol(), 1 );
 }