sc/source/ui/app/inputwin.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2721148fe36aaab9c2eed6c52a4afde7a868e29d
Author:     Michael Meeks <michael.me...@collabora.com>
AuthorDate: Tue Aug 29 22:08:42 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Aug 30 10:29:52 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/+/156219
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 07a4cd93a836..1afa94c23822 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1104,6 +1104,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();

Reply via email to