mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 17:50:04 +01:00
[escher] Fix cursor position when copy pasting
This commit is contained in:
@@ -286,6 +286,9 @@ void ExpressionLayoutField::insertLayoutAtCursor(Poincare::ExpressionLayout * la
|
||||
m_contentView.cursor()->setPointedExpressionLayout(layout->layoutToPointWhenInserting());
|
||||
m_contentView.cursor()->setPosition(Poincare::ExpressionLayoutCursor::Position::Right);
|
||||
}
|
||||
} else if (!layoutWillBeMerged) {
|
||||
m_contentView.cursor()->setPointedExpressionLayout(layout);
|
||||
m_contentView.cursor()->setPosition(Poincare::ExpressionLayoutCursor::Position::Right);
|
||||
}
|
||||
m_contentView.cursor()->pointedExpressionLayout()->addGreySquaresToAllMatrixAncestors();
|
||||
m_contentView.cursor()->hideEmptyLayoutIfNeeded();
|
||||
|
||||
Reference in New Issue
Block a user