[apps/escher] EVWithCursor becomes ELField::ContentView

Change-Id: I719218e4d1d360800e0f1ef3eebeea774c8d5660
This commit is contained in:
Léa Saviot
2018-04-20 16:36:07 +02:00
parent 22ab94209f
commit 894080f1ab
8 changed files with 113 additions and 74 deletions

View File

@@ -97,8 +97,7 @@ bool App::expressionLayoutFieldDidReceiveEvent(::ExpressionLayoutField * express
}
int bufferLength = TextField::maxBufferSize();
char bufferForParsing[bufferLength];
Poincare::ExpressionLayout * expressionLayout = expressionLayoutField->expressionViewWithCursor()->expressionView()->expressionLayout();
expressionLayout->writeTextInBuffer(bufferForParsing, bufferLength);
expressionLayoutField->writeTextInBuffer(bufferForParsing, bufferLength);
Expression * exp = Expression::parse(bufferForParsing);
if (exp == nullptr) {
expressionLayoutField->app()->displayWarning(I18n::Message::SyntaxError);