[escher] LayoutField: fix putCursorRightOfLayout to update matrix

layouts if necessary
This commit is contained in:
Émilie Feral
2020-01-31 16:41:22 +01:00
committed by Léa Saviot
parent 18b4514412
commit 9d1a5ea0a8

View File

@@ -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));
}