mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 01:08:15 +01:00
[apps] Move sumBetweenBounds from Shared::Function to Shared::SumGraphController
This commit is contained in:
committed by
Léa Saviot
parent
1d0668a84c
commit
43d72e082f
@@ -135,7 +135,9 @@ void SumGraphController::reloadBannerView() {
|
||||
FunctionApp * myApp = FunctionApp::app();
|
||||
assert(!m_record.isNull());
|
||||
ExpiringPointer<Function> function = myApp->functionStore()->modelForRecord(m_record);
|
||||
result = function->sumBetweenBounds(m_startSum, endSum, myApp->localContext());
|
||||
Poincare::Context * context = myApp->localContext();
|
||||
Poincare::Expression sum = sumBetweenBounds(function, m_startSum, endSum, context);
|
||||
result = PoincareHelpers::ApproximateToScalar<double>(sum, context);
|
||||
functionLayout = createFunctionLayout(function);
|
||||
} else {
|
||||
m_legendView.setEditableZone(m_cursor->x());
|
||||
|
||||
Reference in New Issue
Block a user