diff --git a/apps/shared/sum_graph_controller.cpp b/apps/shared/sum_graph_controller.cpp index cebbbee19..199c67c12 100644 --- a/apps/shared/sum_graph_controller.cpp +++ b/apps/shared/sum_graph_controller.cpp @@ -66,7 +66,9 @@ bool SumGraphController::moveCursorHorizontallyToPosition(double x) { assert(!m_record.isNull()); ExpiringPointer function = myApp->functionStore()->modelForRecord(m_record); - double y = function->evaluateXYAtParameter(x, myApp->localContext()).x2(); //TODO LEA assertion that x = t? + /* TODO We would like to assert that the function is not a parametered + * function, so we can indeed evaluate the function for parameter x. */ + double y = function->evaluateXYAtParameter(x, myApp->localContext()).x2(); m_cursor->moveTo(x, x, y); if (m_step == Step::SecondParameter) { m_graphView->setAreaHighlight(m_startSum, m_cursor->x());