summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2023-08-29 22:08:42 +0100
committerMichael Meeks <michael.meeks@collabora.com>2023-08-30 10:00:00 +0200
commit1fbf566ad06cb41ae181b3848dfd2535e2dd87a2 (patch)
treeb650ac74c8a8c597e2612d8930c78a2dbd8b1bd7 /sc
parentc2b621b6d9f41d269b4d1aafc5e8911dde51d607 (diff)
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.meeks@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156270
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputwin.cxx4
1 files changed, 4 insertions, 0 deletions
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();