diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-27 15:07:06 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-07-27 18:08:03 +0200 |
commit | 1d9a30bac4ba69ddee34f40427ba24a4d83a1f72 (patch) | |
tree | eb155d69e17f0db64f8bfbba45760491a3702e6f | |
parent | d216e9c5a3d5097a21e10540532e8b81fed65039 (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/40491
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocument.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index b367101ea151..102779633ddd 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -380,6 +380,8 @@ ScChildrenShapes::~ScChildrenShapes() if (pDrawBC) EndListening(*pDrawBC); } + if (mpAccessibleDocument && xSelectionSupplier.is()) + xSelectionSupplier->removeSelectionChangeListener(mpAccessibleDocument); } void ScChildrenShapes::SetDrawBroadcaster() |