editeng/source/editeng/impedit3.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 23886b0e023bc27e9ba89f9ab6d1bdf36da022ab Author: Noel Grandin <n...@peralex.com> AuthorDate: Fri Nov 19 15:58:55 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Nov 20 06:40:35 2021 +0100 tdf#133835 speedup calc autofilter (2) Tweak ImpEditEngine::SetRotation to avoid doing work when nothing has changed, saves 10% Change-Id: I10db2415278908e9e36491950a5f4826e01f42fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125564 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 4b2f860846f6..c28e1eab7b00 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2616,6 +2616,8 @@ void ImpEditEngine::SetVertical( bool bVertical) void ImpEditEngine::SetRotation(TextRotation nRotation) { + if (GetEditDoc().GetRotation() == nRotation) + return; // not modified GetEditDoc().SetRotation(nRotation); bool bUseCharAttribs = bool(aStatus.GetControlWord() & EEControlBits::USECHARATTRIBS); GetEditDoc().CreateDefFont( bUseCharAttribs );