Added some sanity checks for empty grids.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2002-09-21 00:07:20 +00:00
parent 07cbd27aaa
commit e19f4ed3fa

View File

@@ -246,7 +246,12 @@ GridFrame::GridFrame()
// this will create a grid and, by default, an associated grid
// table for strings
grid->CreateGrid( 100, 100 );
grid->CreateGrid( 0, 0 );
grid->AppendRows(100);
grid->AppendCols(100);
int ir = grid->GetNumberRows();
grid->DeleteRows(ir);
grid->AppendRows(ir);
grid->SetRowSize( 0, 60 );
grid->SetCellValue( 0, 0, "Ctrl+Home\nwill go to\nthis cell" );