From 363bf4a620714424eaf853beb1ec710da493024e Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Thu, 25 Jun 2020 11:37:58 +0200 Subject: [PATCH] [apps/calculation] Fixed ellipsis scrolling When scrolling to a calculation without additional outputs from a calculation with additional outputs, the ellipsis, though invisible, would remain selected. Change-Id: I7408ae004b9374e432ac58361616fa2ecf1550d8 --- apps/calculation/history_controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/calculation/history_controller.cpp b/apps/calculation/history_controller.cpp index e2cbf20f2..cc43c3c0b 100644 --- a/apps/calculation/history_controller.cpp +++ b/apps/calculation/history_controller.cpp @@ -161,6 +161,9 @@ void HistoryController::tableViewDidChangeSelectionAndDidScroll(SelectableTableV setSelectedSubviewType(SubviewType::Input, false, previousSelectedCellX, previousSelectedCellY); } else { HistoryViewCell * selectedCell = (HistoryViewCell *)(t->selectedCell()); + if (selectedSubviewType() == SubviewType::Ellipsis && selectedCell->additionalInformationType() == Calculation::AdditionalInformationType::None) { + setSelectedSubviewType(SubviewType::Output, false, previousSelectedCellX, previousSelectedCellY); + } SubviewType nextSelectedSubviewType = selectedSubviewType(); if (selectedCell && !selectedCell->displaysSingleLine()) { nextSelectedSubviewType = previousSelectedCellY < selectedRow() ? SubviewType::Input : SubviewType::Output;