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
This commit is contained in:
Robin Dunn
2000-02-16 17:52:27 +00:00
parent 9b4aede26d
commit 4e5b5abbfd

View 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 );
}