summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-27 15:07:06 +0100
committerMichael Stahl <mstahl@redhat.com>2017-07-27 22:18:49 +0200
commit09716380e12ac2b7119afff20033ce2e7929ebd8 (patch)
treeeccdf15b437864bc6ff1f35ea8f919bdb0944b97
parentbe2a7025e5b62e9dab73886436ee52d5330ae381 (diff)
Related: tdf#106872 amount of a11y selection listeners constantly grows
so it gets progressively slower Change-Id: Ib53c69231c902d064b939be096e0dbeab2f0fc71 Reviewed-on: https://gerrit.libreoffice.org/40493 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 79b1a48b6378..664f0cf951aa 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -394,6 +394,8 @@ ScChildrenShapes::~ScChildrenShapes()
if (pDrawBC)
EndListening(*pDrawBC);
}
+ if (mpAccessibleDocument && xSelectionSupplier.is())
+ xSelectionSupplier->removeSelectionChangeListener(mpAccessibleDocument);
}
void ScChildrenShapes::SetDrawBroadcaster()