sfx2/source/view/lokhelper.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 40c58f6039fb02cff74e442f6adc5ba38adcff1d Author: Michael Meeks <michael.me...@collabora.com> AuthorDate: Sun Jan 24 04:10:41 2021 +0000 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Thu Mar 11 17:06:14 2021 +0100 lok: avoid a set of invalidations per view on re-size. Unfortunate to have N^2 invalidations in the number of views on resize - particularly for calc, when you re-size/wrap-text on a row during editing. Change-Id: I93f75c4543ad072684e5575a2cbe0e8abcab0d80 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109913 Reviewed-by: Jan Holesovsky <ke...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112094 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 2a5ea882d92d..0da6b9b88682 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -539,7 +539,10 @@ void SfxLokHelper::notifyDocumentSizeChangedAllViews(vcl::ITiledRenderable* pDoc // Should we then do this for all views of all open documents // or not? if (pCurrentViewShell == nullptr || pViewShell->GetDocId() == pCurrentViewShell-> GetDocId()) + { SfxLokHelper::notifyDocumentSizeChanged(pViewShell, "", pDoc, bInvalidateAll); + bInvalidateAll = false; // we direct invalidations to all views anyway. + } pViewShell = SfxViewShell::GetNext(*pViewShell); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits