sc/source/ui/app/inputwin.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 1fbf566ad06cb41ae181b3848dfd2535e2dd87a2 Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Tue Aug 29 22:08:42 2023 +0100 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Wed Aug 30 10:00:00 2023 +0200 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 <michael.me...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156270 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<ScInputWindow&>(*w); SfxViewFrame* pViewFrm = SfxViewFrame::Current();