[apps/graph] Correct error: keep the function of interest highlighted when going back and forth to the parameter page

Change-Id: I52e631a586fc2fa87e899092ee6efc02435c2e4e
This commit is contained in:
Émilie Feral
2016-10-04 10:46:25 +02:00
parent c2981505c1
commit 64b3e0906e

View File

@@ -119,10 +119,10 @@ void ListController::didBecomeFirstResponder() {
if (m_activeCelly == -1) {
setActiveCell(1,0);
} else {
if (m_activeCellx < m_functionStore->numberOfFunctions()) {
if (m_activeCelly < m_functionStore->numberOfFunctions()) {
setActiveCell(m_activeCellx, m_activeCelly);
} else {
setActiveCell(m_functionStore->numberOfFunctions()-1, m_activeCelly);
setActiveCell(m_activeCellx, m_functionStore->numberOfFunctions()-1);
}
}
}