From 55e9ed1c58576147f939deea6312cd1acc7f6765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 29 Aug 2019 11:19:11 +0200 Subject: [PATCH] [apps] Clearer TODO comment --- apps/shared/sum_graph_controller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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());