From 29ef8c6d23d2ca94b3e955536ef829059a0f7050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Fri, 30 Nov 2018 11:54:42 +0100 Subject: [PATCH] [apps/solver] Solutions are indexed from 1, not 0 --- apps/solver/solutions_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/solver/solutions_controller.cpp b/apps/solver/solutions_controller.cpp index bc28a6d47..a655efefd 100644 --- a/apps/solver/solutions_controller.cpp +++ b/apps/solver/solutions_controller.cpp @@ -165,9 +165,9 @@ void SolutionsController::willDisplayCellAtLocation(HighlightCell * cell, int i, break; default: /* The system has one variable but might have many solutions: the cell - * text is variableX, with X the row index. For instance, x0, x1,...*/ + * text is variableX, with X the row index + 1 (e.g. x1, x2,...) */ int length = strlcpy(bufferSymbol, m_equationStore->variableAtIndex(0), Poincare::SymbolAbstract::k_maxNameSize); - bufferSymbol[length++] = j+'0'; + bufferSymbol[length++] = j+'1'; bufferSymbol[length] = 0; break; }