diff --git a/lib/src/sheet/sheet.dart b/lib/src/sheet/sheet.dart index 1a136c93..079c6717 100644 --- a/lib/src/sheet/sheet.dart +++ b/lib/src/sheet/sheet.dart @@ -655,9 +655,9 @@ class Sheet { _sheetData = Map>.from(_data); if (_maxRows - 1 <= rowIndex) { - _maxRows += 1; - } else { _maxRows = rowIndex + 1; + } else { + _maxRows += 1; } //_countRowsAndColumns();