mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
Spreadsheet: Fix cell identifier label
Commit 6a6f19a72
broke the cell position display in the top left of the
Spreadsheet window and the title of the cell type dialog, causing the
application to crash when interacting with cells beyond column FE.
This commit is contained in:
parent
4aa58aaab5
commit
9473c694dc
4 changed files with 10 additions and 7 deletions
|
@ -155,11 +155,8 @@ void SpreadsheetWidget::setup_tabs(NonnullRefPtrVector<Sheet> new_sheets)
|
|||
|
||||
if (selection.size() == 1) {
|
||||
auto& position = selection.first();
|
||||
StringBuilder builder;
|
||||
builder.append(position.column);
|
||||
builder.appendff("{}", position.row);
|
||||
m_current_cell_label->set_enabled(true);
|
||||
m_current_cell_label->set_text(builder.string_view());
|
||||
m_current_cell_label->set_text(position.to_cell_identifier(m_selected_view->sheet()));
|
||||
|
||||
auto& cell = m_selected_view->sheet().ensure(position);
|
||||
m_cell_value_editor->on_change = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue