[escher] LayoutField: reset selection when clearing layout

This commit is contained in:
Émilie Feral
2020-05-22 16:01:41 +02:00
parent 80015ca6aa
commit 5725ba1c14

View File

@@ -52,6 +52,7 @@ void LayoutField::ContentView::useInsertionCursor() {
void LayoutField::ContentView::clearLayout() {
HorizontalLayout h = HorizontalLayout::Builder();
if (m_expressionView.setLayout(h)) {
resetSelection();
m_cursor.setLayout(h);
}
}