From bcac947b05b8ae8afc3f5d26a7a3279ca7f2f0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 22 Jul 2019 11:25:48 +0200 Subject: [PATCH] [apps/sequence] defaultCursorAbscissa is forced positive --- apps/sequence/graph/graph_controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sequence/graph/graph_controller.cpp b/apps/sequence/graph/graph_controller.cpp index 6056fbab0..0056975bc 100644 --- a/apps/sequence/graph/graph_controller.cpp +++ b/apps/sequence/graph/graph_controller.cpp @@ -100,7 +100,7 @@ bool GraphController::moveCursorHorizontally(int direction) { } double GraphController::defaultCursorAbscissa() { - return std::round(Shared::FunctionGraphController::defaultCursorAbscissa()); + return std::fmax(0.0, std::round(Shared::FunctionGraphController::defaultCursorAbscissa())); } }