[poincare] Change Context API

Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
This commit is contained in:
Émilie Feral
2016-12-14 16:50:51 +01:00
parent 75948af80f
commit 7af3979d3b
74 changed files with 488 additions and 451 deletions

View File

@@ -89,7 +89,7 @@ bool EditExpressionController::textFieldDidReceiveEvent(::TextField * textField,
bool EditExpressionController::textFieldDidFinishEditing(::TextField * textField, const char * text) {
Calculation calculation = Calculation();
App * calculationApp = (App *)app();
calculation.setContent(textBody(), calculationApp->evaluateContext());
calculation.setContent(textBody(), calculationApp->localContext());
m_calculationStore->push(&calculation);
m_historyController->reload();
m_contentView.mainView()->scrollToCell(0, m_historyController->numberOfRows()-1);