From 9d1a5ea0a81e971c1c5673d00b2f24227df482cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 31 Jan 2020 16:41:22 +0100 Subject: [PATCH] [escher] LayoutField: fix putCursorRightOfLayout to update matrix layouts if necessary --- escher/src/layout_field.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/escher/src/layout_field.cpp b/escher/src/layout_field.cpp index a9984846f..df513c08c 100644 --- a/escher/src/layout_field.cpp +++ b/escher/src/layout_field.cpp @@ -296,6 +296,7 @@ CodePoint LayoutField::XNTCodePoint(CodePoint defaultXNTCodePoint) { } void LayoutField::putCursorRightOfLayout() { + m_contentView.cursor()->layout().removeGreySquaresFromAllMatrixAncestors(); m_contentView.setCursor(LayoutCursor(m_contentView.expressionView()->layout(), LayoutCursor::Position::Right)); }