From c1c679deca078209bc3008ccd9ccc0a8715929a1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 1 Sep 2021 18:26:29 +0200 Subject: rename UpdateMode -> UpdateLayout in editeng class ... because "update" is such a generic term I keep forgetting what we are turning on and off Also return the previous value from SetUpdateLayout to make the save/restore code more compact. Change-Id: Iae1764c837a92e58c9b17521f130e8fc80311d22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121479 Tested-by: Noel Grandin Reviewed-by: Noel Grandin --- sw/source/uibase/shells/drwtxtsh.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/uibase/shells/drwtxtsh.cxx') diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index d7cdea7018d7..2cb86428b65b 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -732,7 +732,7 @@ void SwDrawTextShell::InsertSymbol(SfxRequest& rReq) // do not flicker pOLV->HideCursor(); SdrOutliner * pOutliner = pSdrView->GetTextEditOutliner(); - pOutliner->SetUpdateMode(false); + pOutliner->SetUpdateLayout(false); SfxItemSet aOldSet( pOLV->GetAttribs() ); SfxItemSet aFontSet( @@ -776,7 +776,7 @@ void SwDrawTextShell::InsertSymbol(SfxRequest& rReq) pOLV->SetAttribs( aFontSet ); // From now on show again - pOutliner->SetUpdateMode(true); + pOutliner->SetUpdateLayout(true); pOLV->ShowCursor(); rReq.AppendItem( SfxStringItem( GetPool().GetWhich(SID_CHARMAP), sSym ) ); -- cgit