From 7f4dd1255aee96fb1be5fca2a65c76525d04ed52 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Tue, 15 Oct 2019 16:06:18 +0200 Subject: [PATCH] Revert "[escher/layout_field] Factor insertLayoutAtCursor" This reverts commit b06cac4fcce0c1ab3fedd6c44846983962316749. --- escher/src/layout_field.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/escher/src/layout_field.cpp b/escher/src/layout_field.cpp index a282e1e3c..c27a6e882 100644 --- a/escher/src/layout_field.cpp +++ b/escher/src/layout_field.cpp @@ -358,10 +358,11 @@ void LayoutField::insertLayoutAtCursor(Layout layoutR, Poincare::Expression corr } assert(!cursorMergedLayout.isUninitialized()); m_contentView.cursor()->setLayout(cursorMergedLayout); + m_contentView.cursor()->setPosition(LayoutCursor::Position::Right); } else if (!layoutWillBeMerged) { m_contentView.cursor()->setLayout(layoutR); + m_contentView.cursor()->setPosition(LayoutCursor::Position::Right); } - m_contentView.cursor()->setPosition(LayoutCursor::Position::Right); // Handle matrices cursor->layoutReference().addGreySquaresToAllMatrixAncestors();