summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/output2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-09-05 15:01:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-20 19:20:54 +0200
commite1972743d692c8d8611912c31aae2cb08ae7636d (patch)
tree65817acedf6f17ab8af8df33b2f7abe80fe363d7 /sc/source/ui/view/output2.cxx
parenteb830ad284f245165b6ab5e8647d48834622f2d5 (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 'sc/source/ui/view/output2.cxx')
-rw-r--r--sc/source/ui/view/output2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index c1ac4fa31242..f33098bbb353 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2716,9 +2716,9 @@ bool ScOutputData::DrawEditParam::adjustHorAlignment(ScFieldEditEngine* pEngine)
SvxAdjust eEditAdjust = (meHorJustResult == SvxCellHorJustify::Center) ?
SvxAdjust::Center : SvxAdjust::Right;
- pEngine->SetUpdateLayout(false);
+ const bool bPrevUpdateLayout = pEngine->SetUpdateLayout(false);
pEngine->SetDefaultItem( SvxAdjustItem(eEditAdjust, EE_PARA_JUST) );
- pEngine->SetUpdateLayout(true);
+ pEngine->SetUpdateLayout(bPrevUpdateLayout);
return true;
}
return false;