// do set scrollbar parameters
SetScrollbars( GRID_SCROLL_LINE, GRID_SCROLL_LINE,
- w, h, x, y, GetBatchCount() );
+ w, h, x, y, (GetBatchCount() != 0));
}
// This is used to redraw all grid lines e.g. when the grid line colour
// has been changed
//
-void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED_GTK(reg) )
+void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED(reg) )
{
if ( !m_gridLinesEnabled ||
!m_numRows ||
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 );
}
//