[escher] Hide and show empty layouts

Change-Id: I3a54848108e1168dfdecf76a562381c7bd1dd65d
This commit is contained in:
Léa Saviot
2018-04-17 15:36:46 +02:00
parent 193aefd5a6
commit 0fee6685fe

View File

@@ -232,7 +232,9 @@ void ScrollableExpressionViewWithCursor::insertLayoutFromTextAtCursor(const char
if (expression != nullptr) {
Poincare::ExpressionLayout * layout = expression->createLayout();
delete expression;
m_expressionViewWithCursor.cursor()->showEmptyLayoutIfNeeded();
insertLayoutAtCursor(layout, nullptr);
m_expressionViewWithCursor.cursor()->hideEmptyLayoutIfNeeded();
reload();
return;
}