- wxASSERT_MSG( !IsRowGrowable( idx ),
+ wxCHECK_RET( idx < (size_t)GetRows(), "invalid row index" );
+ wxASSERT_MSG( !IsRowGrowable( idx ),
"AddGrowableRow() called for growable row" );
m_growableRows.Add( idx );
m_growableRowsProportions.Add( proportion );
"AddGrowableRow() called for growable row" );
m_growableRows.Add( idx );
m_growableRowsProportions.Add( proportion );
- wxASSERT_MSG( !IsColGrowable( idx ),
+ wxCHECK_RET( idx < (size_t)GetCols(), "invalid column index" );
+ wxASSERT_MSG( !IsColGrowable( idx ),
"AddGrowableCol() called for growable column" );
m_growableCols.Add( idx );
m_growableColsProportions.Add( proportion );
"AddGrowableCol() called for growable column" );
m_growableCols.Add( idx );
m_growableColsProportions.Add( proportion );