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);