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:
@@ -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" );
|
||||
|
Reference in New Issue
Block a user