[apps/sum_graph_controller] Do not move the cursor to NAN

This commit is contained in:
Léa Saviot
2019-09-09 14:08:17 +02:00
parent 99aee59e5e
commit 723f53a1aa

View File

@@ -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> function = myApp->functionStore()->modelForRecord(m_record);