[apps/calculation] Evaluate calculations in the context including ANS

Change-Id: I9442885551d928d2c1a32bae1324eb6c45af3c94
This commit is contained in:
Émilie Feral
2016-11-03 17:20:01 +01:00
parent 99af9b8692
commit f5272cb0cf
4 changed files with 10 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ bool EditExpressionController::handleEvent(Ion::Events::Event event) {
{
Calculation calculation = Calculation();
App * calculationApp = (App *)app();
calculation.setContent(textBody(), calculationApp->globalContext());
calculation.setContent(textBody(), calculationApp->evaluateContext());
m_calculationStore->push(&calculation);
m_historyController->reload();
m_contentView.mainView()->scrollToCell(0, m_historyController->numberOfRows()-1);