summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-06 18:52:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-07 13:10:53 +0200
commit2ca614be3eb65d852b2c811c853b754e5e5ecb36 (patch)
tree40ab1d6d2a3058ecb090a9e1205e9232a05510fb /editeng
parent0a32449722c38ab59845ce451c231d82dafb1b58 (diff)
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@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit.cxx3
1 files changed, 3 insertions, 0 deletions
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;