mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Spreadsheet: Treat an empty format string as "default"
This commit is contained in:
parent
e250591ff3
commit
a2efff9287
2 changed files with 3 additions and 3 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue