diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-09-01 18:26:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-02 19:08:49 +0200 |
commit | c1c679deca078209bc3008ccd9ccc0a8715929a1 (patch) | |
tree | 6f5a1a1207636b4b7f1b0575f36cbf579f7c85af /forms | |
parent | 58da51715425d781b5b8b9b9e412c98daf80b601 (diff) |
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 <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/richtext/richtextunowrapper.cxx | 2 | ||||
-rw-r--r-- | forms/source/richtext/richtextvclcontrol.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/richtext/richtextunowrapper.cxx b/forms/source/richtext/richtextunowrapper.cxx index 5f7a6353ea78..d9c4269216ea 100644 --- a/forms/source/richtext/richtextunowrapper.cxx +++ b/forms/source/richtext/richtextunowrapper.cxx @@ -103,7 +103,7 @@ namespace frm { EditView* pView = m_rEngine.GetView( view ); if ( pView ) - pView->ForceUpdate(); + pView->ForceLayoutCalculation(); } if ( m_pTextChangeListener ) diff --git a/forms/source/richtext/richtextvclcontrol.cxx b/forms/source/richtext/richtextvclcontrol.cxx index ff570eb74efa..cb4d613e36b2 100644 --- a/forms/source/richtext/richtextvclcontrol.cxx +++ b/forms/source/richtext/richtextvclcontrol.cxx @@ -88,12 +88,12 @@ namespace frm if ( HasChildPathFocus() ) getView().HideCursor(); - bool bOldUpdateMode = getEngine().GetUpdateMode(); // TODO: guard? - getEngine().SetUpdateMode( false ); + // TODO: guard? + bool bOldUpdateMode = getEngine().SetUpdateLayout( false ); getView().SetAttribs( _rAttributesToApply ); - getEngine().SetUpdateMode( bOldUpdateMode ); + getEngine().SetUpdateLayout( bOldUpdateMode ); getView().Invalidate(); if ( HasChildPathFocus() ) |