mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
[apps] add a method to get the global context in appsContainer
Change-Id: I4b7a4c1c64ae21c7e4f0193b3314d96cef805cbb
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "values_controller.h"
|
||||
#include "../../constant.h"
|
||||
#include "../../apps_container.h"
|
||||
#include "../app.h"
|
||||
#include <assert.h>
|
||||
|
||||
@@ -289,8 +290,8 @@ void ValuesController::editValue(bool overwrite, char initialDigit) {
|
||||
ValueCell * cell = valuesController->abscisseCellAtRow(activeRow);
|
||||
InputViewController * myInputViewController = (InputViewController *)sender;
|
||||
const char * textBody = myInputViewController->textBody();
|
||||
App * myApp = (App *)valuesController->app();
|
||||
Context * globalContext = myApp->globalContext();
|
||||
AppsContainer * appsContainer = (AppsContainer *)valuesController->app()->container();
|
||||
Context * globalContext = appsContainer->context();
|
||||
float floatBody = Expression::parse(textBody)->approximate(*globalContext);
|
||||
valuesController->interval()->setElement(activeRow-1, floatBody);
|
||||
valuesController->willDisplayCellAtLocation(cell, activeColumn, activeRow);
|
||||
|
||||
Reference in New Issue
Block a user