From: Robin Dunn Date: Wed, 16 Feb 2000 17:52:27 +0000 (+0000) Subject: Insert row/col now uses the current position to determine where to insert. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4e5b5abbfd20653c4d6f8c0751e3d045e33e234a Insert row/col now uses the current position to determine where to insert. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/newgrid/griddemo.cpp b/samples/newgrid/griddemo.cpp index ac8dc4486b..bd333d2b25 100644 --- a/samples/newgrid/griddemo.cpp +++ b/samples/newgrid/griddemo.cpp @@ -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 ); }