diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 6d11973ad4..c2a3bc721c 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7290,7 +7290,7 @@ void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED(reg) ) return; #endif - if ( !m_gridLinesEnabled || m_numRows || !m_numCols ) + if ( !m_gridLinesEnabled || !m_numRows || !m_numCols ) return; int top, bottom, left, right;