From 0fee6685fef16baaa20a7f2d8f6c1006e149ec8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 17 Apr 2018 15:36:46 +0200 Subject: [PATCH] [escher] Hide and show empty layouts Change-Id: I3a54848108e1168dfdecf76a562381c7bd1dd65d --- escher/src/scrollable_expression_view_with_cursor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/escher/src/scrollable_expression_view_with_cursor.cpp b/escher/src/scrollable_expression_view_with_cursor.cpp index 654c7c450..81bfc71f3 100644 --- a/escher/src/scrollable_expression_view_with_cursor.cpp +++ b/escher/src/scrollable_expression_view_with_cursor.cpp @@ -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; }