// do set scrollbar parameters
SetScrollbars( GRID_SCROLL_LINE, GRID_SCROLL_LINE,
- w, h, x, y, GetBatchCount() );
+ w, h, x, y, (GetBatchCount() != 0));
}
void wxGrid::SelectAll()
{
- m_selection->SelectBlock( 0, 0, m_numRows-1, m_numCols-1 );
+ if ( m_numRows > 0 && m_numCols > 0 )
+ m_selection->SelectBlock( 0, 0, m_numRows-1, m_numCols-1 );
}
//