1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 09:47:35 +00:00

Spreadsheet: Don't ignore selections in the A column :^)

This was a leftover from when the first column contained row numbers.
This commit is contained in:
Andreas Kling 2020-08-26 16:57:22 +02:00
parent 9a0f40d4b5
commit c5278dac99

View file

@ -81,9 +81,6 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
return on_selection_dropped();
auto selection = m_table_view->selection().first();
// Ignore selecting the row numbers.
if (selection.column() == 0)
return;
Position position { m_sheet->column(selection.column()), (size_t)selection.row() };
auto& cell = m_sheet->ensure(position);