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-08 09:22:39 +0200
commit865641047be4a693f7a51635ce06eab15675126d (patch)
treee5fb808c497a29b0d81b0fcbab7f2a1905d89acc /editeng
parent4d95672531225a436f4b7b0ba94ba9974e7949b4 (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> (cherry picked from commit 2ca614be3eb65d852b2c811c853b754e5e5ecb36) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118509
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;