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:
@@ -417,13 +417,13 @@ void GridFrame::SetGridLineColour( wxCommandEvent& WXUNUSED(ev) )
|
|||||||
|
|
||||||
void GridFrame::InsertRow( wxCommandEvent& WXUNUSED(ev) )
|
void GridFrame::InsertRow( wxCommandEvent& WXUNUSED(ev) )
|
||||||
{
|
{
|
||||||
grid->InsertRows( 0, 1 );
|
grid->InsertRows( grid->GetGridCursorRow(), 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void GridFrame::InsertCol( wxCommandEvent& WXUNUSED(ev) )
|
void GridFrame::InsertCol( wxCommandEvent& WXUNUSED(ev) )
|
||||||
{
|
{
|
||||||
grid->InsertCols( 0, 1 );
|
grid->InsertCols( grid->GetGridCursorCol(), 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user