Hopefully fixed bug #233492 (SelectAll crashed on empty grids).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2001-04-20 20:48:51 +00:00
parent f15b49521a
commit f74d0b57aa

View File

@@ -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 );
}
//