From cef106b23d5ecdb8cc66db0bf25dda3795fa7b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 11 Mar 2019 16:43:03 +0100 Subject: [PATCH] [escher] Avoid unnecessary relayouts --- escher/src/view.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/escher/src/view.cpp b/escher/src/view.cpp index 6ba058589..829a77779 100644 --- a/escher/src/view.cpp +++ b/escher/src/view.cpp @@ -132,7 +132,9 @@ void View::setFrame(KDRect frame) { markRectAsDirty(bounds()); // FIXME: m_dirtyRect = bounds(); would be more correct (in case the view is being shrinked) - layoutSubviews(); + if (!m_frame.isEmpty()) { + layoutSubviews(); + } } KDPoint View::pointFromPointInView(View * view, KDPoint point) {