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
This commit is contained in:
Michael Meeks
2023-08-30 10:00:00 +02:00
parent c2b621b6d9
commit 1fbf566ad0
+4
View File
@@ -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();