Merge branch 'cas_with_python' into python_console

Change-Id: I06e3e07b9fd8d52818d90110ed7517777b35b9f1
This commit is contained in:
Émilie Feral
2017-12-01 17:23:02 +01:00
180 changed files with 2195 additions and 1604 deletions

View File

@@ -24,7 +24,7 @@ bool EditableCellTableViewController::textFieldShouldFinishEditing(TextField * t
bool EditableCellTableViewController::textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) {
AppsContainer * appsContainer = ((TextFieldDelegateApp *)app())->container();
Context * globalContext = appsContainer->globalContext();
double floatBody = Expression::approximate<double>(text, *globalContext);
double floatBody = Expression::approximateToScalar<double>(text, *globalContext);
if (std::isnan(floatBody) || std::isinf(floatBody)) {
app()->displayWarning(I18n::Message::UndefinedValue);
return false;