From 2ca614be3eb65d852b2c811c853b754e5e5ecb36 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Jul 2021 18:52:16 +0200 Subject: 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 --- editeng/source/editeng/impedit.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editeng') 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; -- cgit