From 64b3e0906ed756fb117b6fa415d6ac6eb9dc9dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Tue, 4 Oct 2016 10:46:25 +0200 Subject: [PATCH] [apps/graph] Correct error: keep the function of interest highlighted when going back and forth to the parameter page Change-Id: I52e631a586fc2fa87e899092ee6efc02435c2e4e --- apps/graph/list/list_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/graph/list/list_controller.cpp b/apps/graph/list/list_controller.cpp index c74264dec..3b1ae6ec3 100644 --- a/apps/graph/list/list_controller.cpp +++ b/apps/graph/list/list_controller.cpp @@ -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); } } }