ladybird/Userland/Applications/Spreadsheet
RasmusNylander fa99125571 Spreadsheet: Handle emptying of cell containing only an '='
Cell::set_data(String new_data) now checks whether the cell is a
formula-cell and the new_data is an empty string. If this is case, it
will no longer simply return and will now instead actually set the
cell's contents to an empty string.

This fixes an error whereupon committing the string "=" to a cell, it
would not be possible to directly delete the cell's contents. Instead,
it first had to be overwritten with another string, which then could be
deleted.

This could probably be done more elegantly. Right now, I believe,
writing the string "=" to a (formula-)cell already containing an
identical string will result in the cell being marked as dirty, even
though nothing actually changed.
2021-12-16 02:44:37 +03:30
..
CellType Spreadsheet: Avoid using Value.to_string_without_side_effects() 2021-12-12 14:49:49 +03:30
Readers LibCore: Use ErrorOr<T> for Core::File::open() 2021-11-08 00:35:27 +01:00
Writers Everywhere: Behaviour => Behavior 2021-09-07 13:53:14 +02:00
Cell.cpp Spreadsheet: Handle emptying of cell containing only an '=' 2021-12-16 02:44:37 +03:30
Cell.h Spreadsheet: Avoid using Value.to_string_without_side_effects() 2021-12-12 14:49:49 +03:30
CellSyntaxHighlighter.cpp Spreadsheet: Remove the offset used for exception TextRanges 2021-06-17 01:08:27 +04:30
CellSyntaxHighlighter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CellTypeDialog.cpp Userland+LibGUI: Add shorthand versions of the Margins constructor 2021-08-18 10:30:50 +02:00
CellTypeDialog.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CMakeLists.txt Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
CondFormatting.gml Userland+LibGUI: Add shorthand versions of the Margins constructor 2021-08-18 10:30:50 +02:00
ConditionalFormatting.h LibGUI: Rename ScrollableWidget => AbstractScrollableWidget 2021-05-03 21:03:13 +02:00
CondView.gml Everywhere: Change font properties to be described in GML 2021-03-29 09:10:23 +02:00
csv_export.gml Applications: Remove border from GroupBox margins 2021-11-03 16:13:19 +01:00
csv_import.gml Applications: Remove border from GroupBox margins 2021-11-03 16:13:19 +01:00
ExportDialog.cpp LibCore: Use ErrorOr<T> for Core::File::open() 2021-11-08 00:35:27 +01:00
ExportDialog.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Forward.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HelpWindow.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
HelpWindow.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
ImportDialog.cpp AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional) 2021-11-17 00:21:10 +01:00
ImportDialog.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
JSIntegration.cpp Spreadsheet: Replace hacky JS VM configuration with a more correct one 2021-12-12 14:49:49 +03:30
JSIntegration.h Spreadsheet: Reimplement ranges as lazy objects instead of arrays 2021-12-12 14:49:49 +03:30
main.cpp Spreadsheet: Move menu and action code to initialize_menubar() 2021-10-01 08:34:59 +03:30
Position.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
select_format_page.gml Userland+LibGUI: Add shorthand versions of the Margins constructor 2021-08-18 10:30:50 +02:00
Spreadsheet.cpp Spreadsheet: Avoid using Value.to_string_without_side_effects() 2021-12-12 14:49:49 +03:30
Spreadsheet.h Spreadsheet: Replace hacky JS VM configuration with a more correct one 2021-12-12 14:49:49 +03:30
SpreadsheetModel.cpp Spreadsheet: Avoid using Value.to_string_without_side_effects() 2021-12-12 14:49:49 +03:30
SpreadsheetModel.h Everywhere: Replace Model::update() with Model::invalidate() 2021-08-06 19:14:31 +02:00
SpreadsheetView.cpp Spreadsheet: Avoid implicitly copying ByteBuffer 2021-12-08 09:46:13 -08:00
SpreadsheetView.h Spreadsheet: Call SheetModel::update() instead of invalidate() 2021-08-10 05:21:49 +04:30
SpreadsheetWidget.cpp Spreadsheet: Replace the help button's text with something we can render 2021-12-12 14:49:49 +03:30
SpreadsheetWidget.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
Workbook.cpp Spreadsheet: Replace hacky JS VM configuration with a more correct one 2021-12-12 14:49:49 +03:30
Workbook.h Spreadsheet: Replace hacky JS VM configuration with a more correct one 2021-12-12 14:49:49 +03:30