[apps] Clearer TODO comment

This commit is contained in:
Léa Saviot
2019-08-29 11:19:11 +02:00
parent 24d1594255
commit 55e9ed1c58

View File

@@ -66,7 +66,9 @@ bool SumGraphController::moveCursorHorizontallyToPosition(double x) {
assert(!m_record.isNull());
ExpiringPointer<Function> 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());