From e1972743d692c8d8611912c31aae2cb08ae7636d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 5 Sep 2021 15:01:44 +0200 Subject: be more disciplined with SetUpdateLayout on editengine save/restore in more places, and check in more places before doing layout, so we dont waste time on expensive layout Change-Id: I311f1f7f97a508da296078e936cb3704938dfdc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121687 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/svdedxv.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 45ac84a3c49b..d71c48027232 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -290,7 +290,7 @@ void SdrObjEditView::ModelHasChanged() { aTextEditArea = aEditArea1; aMinTextEditArea = aMinArea1; - pTextEditOutliner->SetUpdateLayout(false); + const bool bPrevUpdateLayout = pTextEditOutliner->SetUpdateLayout(false); pTextEditOutliner->SetMinAutoPaperSize(aPaperMin1); pTextEditOutliner->SetMaxAutoPaperSize(aPaperMax1); pTextEditOutliner->SetPaperSize(Size(0, 0)); // re-format Outliner @@ -323,7 +323,7 @@ void SdrObjEditView::ModelHasChanged() if (nStat != nStat0) pOLV->SetControlWord(nStat); } - pTextEditOutliner->SetUpdateLayout(true); + pTextEditOutliner->SetUpdateLayout(bPrevUpdateLayout); bAreaChg = true; } } -- cgit v1.2.3