diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp index e5acbcc054a..1654f98953a 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp @@ -495,6 +495,8 @@ Position Sheet::written_data_bounds() const { Position bound; for (auto& entry : m_cells) { + if (entry.value->data().is_empty()) + continue; if (entry.key.row >= bound.row) bound.row = entry.key.row; if (entry.key.column >= bound.column)