diff options
Diffstat (limited to 'Userland/Applications/Spreadsheet/Spreadsheet.cpp')
-rw-r--r-- | Userland/Applications/Spreadsheet/Spreadsheet.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp index 83f8296c54..67d8143ba5 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp @@ -598,8 +598,11 @@ Vector<Vector<String>> Sheet::to_xsv() const row.resize(column_count); for (size_t j = 0; j < column_count; ++j) { auto cell = at({ j, i }); - if (cell) - row[j] = cell->typed_display(); + if (cell) { + auto result = cell->typed_display(); + if (result.has_value()) + row[j] = result.value(); + } } data.append(move(row)); |