[apps/calculation] Fix relayouting when highlighted cell changed

This fixes the following scenario: add "1.2" 5 times, go up three times,
and down three times, the last cell was not correctly relayout.
This commit is contained in:
Émilie Feral
2020-01-22 16:44:24 +01:00
committed by Léa Saviot
parent 86bd4be03e
commit 39dbb7d68c
3 changed files with 12 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ void HistoryController::willDisplayCellForIndex(HighlightCell * cell, int index)
HistoryViewCell * myCell = (HistoryViewCell *)cell;
myCell->setCalculation(calculationAtIndex(index).pointer(), index == selectedRow() && selectedSubviewType() == SubviewType::Output);
myCell->setEven(index%2 == 0);
myCell->setHighlighted(myCell->isHighlighted());
myCell->reloadSubviewHighlight();
}
KDCoordinate HistoryController::rowHeight(int j) {