sfx2/source/view/lokhelper.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 4fab953fe24943152cfdbbc88b0d904be73c8514 Author: Michael Meeks <[email protected]> AuthorDate: Sun Jan 24 04:10:41 2021 +0000 Commit: Michael Meeks <[email protected]> CommitDate: Thu Jan 28 15:38:13 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 <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 4928dd3102e9..3c1ecd207159 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -530,7 +530,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 [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
