[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - editeng/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Jul 8 07:23:13 UTC 2021


 editeng/source/editeng/impedit.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 865641047be4a693f7a51635ce06eab15675126d
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Tue Jul 6 18:52:16 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jul 8 09:22:39 2021 +0200

    tdf#132740 bypass work if selection has not changed
    
    takes 10% of the time off
    
    Change-Id: Ia0a2f4469088e103f162b7d85abb7fadc5f365cc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118532
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    (cherry picked from commit 2ca614be3eb65d852b2c811c853b754e5e5ecb36)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118509

diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 9fb5ce8d8897..22421c226234 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -241,6 +241,9 @@ const OutlinerViewShell* ImpEditView::GetViewShell() const
 
 void ImpEditView::SetEditSelection( const EditSelection& rEditSelection )
 {
+    if (aEditSelection == rEditSelection)
+        return;
+
     // set state before notification
     aEditSelection = rEditSelection;
 


More information about the Libreoffice-commits mailing list