diff options
author | Noel Grandin <noel@peralex.com> | 2021-11-19 15:58:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-20 06:40:35 +0100 |
commit | 23886b0e023bc27e9ba89f9ab6d1bdf36da022ab (patch) | |
tree | c744a27fce39fd9fba0eae1bbe4b85e9170fb3ce /editeng | |
parent | 66317d3aa5ada5b7c5ea317590730f563bebb77c (diff) |
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.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |