X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/389b961e233282ce7829107826ed92e314935366..a92d972108f87b7ce33a9e2353c32a7a649097eb:/src/generic/grid.cpp diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index d653d727ee..186c7ba70a 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -8345,7 +8345,8 @@ void wxGrid::SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol, 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 ); } //