[Libreoffice-commits] core.git: editeng/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 7 11:11:26 UTC 2021


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

New commits:
commit 2ca614be3eb65d852b2c811c853b754e5e5ecb36
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: Wed Jul 7 13:10:53 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>

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