diff --git a/Applications/Spreadsheet/CellType/Numeric.cpp b/Applications/Spreadsheet/CellType/Numeric.cpp index 16cdbad58d3..ca283bd11e0 100644 --- a/Applications/Spreadsheet/CellType/Numeric.cpp +++ b/Applications/Spreadsheet/CellType/Numeric.cpp @@ -44,7 +44,7 @@ String NumericCell::display(Cell& cell, const CellTypeMetadata& metadata) const { auto value = js_value(cell, metadata); String string; - if (metadata.format.is_null()) + if (metadata.format.is_empty()) string = value.to_string_without_side_effects(); else string = format_double(metadata.format.characters(), value.to_double(cell.sheet->interpreter())); diff --git a/Applications/Spreadsheet/CellTypeDialog.cpp b/Applications/Spreadsheet/CellTypeDialog.cpp index 0466f8427ea..77e3d038e15 100644 --- a/Applications/Spreadsheet/CellTypeDialog.cpp +++ b/Applications/Spreadsheet/CellTypeDialog.cpp @@ -198,9 +198,9 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, const Vector& po { auto& checkbox = right_side.add("Override display format"); auto& editor = right_side.add(); - checkbox.set_checked(!m_format.is_null()); + checkbox.set_checked(!m_format.is_empty()); editor.set_should_hide_unnecessary_scrollbars(true); - editor.set_enabled(!m_format.is_null()); + editor.set_enabled(!m_format.is_empty()); editor.set_text(m_format); checkbox.set_preferred_size(0, 20);