diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-09-05 15:01:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-20 19:20:54 +0200 |
commit | e1972743d692c8d8611912c31aae2cb08ae7636d (patch) | |
tree | 65817acedf6f17ab8af8df33b2f7abe80fe363d7 /svx | |
parent | eb830ad284f245165b6ab5e8647d48834622f2d5 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdedxv.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |