From 723f53a1aa01bbf8632c6ce1352abeee34fbb6bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Mon, 9 Sep 2019 14:08:17 +0200 Subject: [PATCH] [apps/sum_graph_controller] Do not move the cursor to NAN --- apps/shared/sum_graph_controller.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/shared/sum_graph_controller.cpp b/apps/shared/sum_graph_controller.cpp index c5b1703d7..0a204cf8a 100644 --- a/apps/shared/sum_graph_controller.cpp +++ b/apps/shared/sum_graph_controller.cpp @@ -62,6 +62,9 @@ bool SumGraphController::handleEvent(Ion::Events::Event event) { } bool SumGraphController::moveCursorHorizontallyToPosition(double x) { + if (std::isnan(x)) { + return true; + } FunctionApp * myApp = FunctionApp::app(); assert(!m_record.isNull()); ExpiringPointer function = myApp->functionStore()->modelForRecord(m_record);