From 1fbf566ad06cb41ae181b3848dfd2535e2dd87a2 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 29 Aug 2023 22:08:42 +0100 Subject: [PATCH] lok: avoid forcing expensive re-layout of the calc input bar. This occured on doc_setView and was unreasonably expensive - loading and de-compressing new PNGs as multiple users typed, re-sizing and re-rendering a toolbar that is not visible -> do nothing here. cf. cool#6893. Change-Id: I1980a3a4516fb2aa629da85de9d4628f29de5af7 Signed-off-by: Michael Meeks Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156270 --- sc/source/ui/app/inputwin.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 70dee0e453fd..802d2d7087e5 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1141,6 +1141,10 @@ void ScInputBarGroup::NumLinesChanged() void ScInputBarGroup::TriggerToolboxLayout() { + // layout changes are expensive and un-necessary. + if (comphelper::LibreOfficeKit::isActive()) + return; + vcl::Window *w=GetParent(); ScInputWindow &rParent = dynamic_cast(*w); SfxViewFrame* pViewFrm = SfxViewFrame::Current();