From 5725ba1c1499efd1e989e2d8fb99bf66f020b879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 22 May 2020 16:01:41 +0200 Subject: [PATCH] [escher] LayoutField: reset selection when clearing layout --- 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 52f457e46..4a8a58197 100644 --- a/escher/src/layout_field.cpp +++ b/escher/src/layout_field.cpp @@ -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); } }