mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Start fixing apps as cursor has new member variable
This commit is contained in:
@@ -65,8 +65,10 @@ bool SumGraphController::moveCursorHorizontallyToPosition(double x) {
|
||||
FunctionApp * myApp = FunctionApp::app();
|
||||
assert(!m_record.isNull());
|
||||
ExpiringPointer<Function> function = myApp->functionStore()->modelForRecord(m_record);
|
||||
double y = function->evaluateAtAbscissa(x, myApp->localContext());
|
||||
m_cursor->moveTo(x, y);
|
||||
|
||||
Coordinate2D<double> xy = function->evaluateAtParameter(x, myApp->localContext()); //TODO LEA assertion that x = t?
|
||||
double y = xy.y();
|
||||
m_cursor->moveTo(x, x, y);
|
||||
if (m_step == Step::SecondParameter) {
|
||||
m_graphView->setAreaHighlight(m_startSum, m_cursor->x());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user