mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 11:39:58 +02:00
[escher] Return true when layout too big to be handled
Change-Id: If15f032c4d1666021435927d90f500afbdee3bfd
This commit is contained in:
committed by
EmilieNumworks
parent
bde05b3d8b
commit
08b3f73b9c
@@ -221,13 +221,13 @@ bool ExpressionLayoutField::handleEventWithText(const char * text, bool indentat
|
||||
}
|
||||
Poincare::Expression * resultExpression = Poincare::Expression::parse(text);
|
||||
if (resultExpression == nullptr) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
Poincare::ExpressionLayout * resultLayout = resultExpression->createLayout();
|
||||
delete resultExpression;
|
||||
if (currentNumberOfLayouts + resultLayout->numberOfDescendants(true) >= k_maxNumberOfLayouts) {
|
||||
delete resultLayout;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
// Find the pointed layout.
|
||||
Poincare::ExpressionLayout * pointedLayout = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user