[solver] Fix an even odd bug: make colors consistent between even odd

cells and inheriting even odd cells
(scrollable_exact_approximate_expressions_cell)
This commit is contained in:
Émilie Feral
2018-05-31 14:14:55 +02:00
parent 79bf1dd3e3
commit 1f57d0a242
3 changed files with 3 additions and 2 deletions

View File

@@ -80,6 +80,7 @@ int SolutionsController::numberOfColumns() {
void SolutionsController::willDisplayCellAtLocation(HighlightCell * cell, int i, int j) {
EvenOddCell * evenOddCell = static_cast<EvenOddCell *>(cell);
evenOddCell->setEven(j%2 == 0);
evenOddCell->reloadCell();
if (i == 0) {
EvenOddBufferTextCell * symbolCell = static_cast<EvenOddBufferTextCell *>(cell);
symbolCell->setFontSize(KDText::FontSize::Large);