[apps/grah} closestCurveIndexVertically renamed as next...

This commit is contained in:
Léa Saviot
2019-09-23 12:07:51 +02:00
committed by EmilieNumworks
parent 936b624fb9
commit ebfa251db8
5 changed files with 8 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ void FunctionGraphController::initCursorParameters() {
bool FunctionGraphController::moveCursorVertically(int direction) {
int currentActiveFunctionIndex = indexFunctionSelectedByCursor();
Poincare::Context * context = textFieldDelegateApp()->localContext();
int nextActiveFunctionIndex = closestCurveIndexVertically(direction > 0, currentActiveFunctionIndex, context);
int nextActiveFunctionIndex = nextCurveIndexVertically(direction > 0, currentActiveFunctionIndex, context);
if (nextActiveFunctionIndex < 0) {
return false;
}