diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 8e541e67f2..9e25988500 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -1581,12 +1581,12 @@ void wxGridCellStringRenderer::Draw(wxGrid& grid, for (int j=row; j 0) c_rows = 0; - if (grid.GetTable()->IsEmptyCell(row+c_rows, i)) + if (!grid.GetTable()->IsEmptyCell(j+c_rows, i)) { is_empty = FALSE; - break; + break; } } if (is_empty)