diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-27 15:07:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-27 17:10:01 +0200 |
commit | 998e3d5cef63cb9c512737bce65519f5a86ba019 (patch) | |
tree | fccb8c519bc10f8818756c3a2fe89eba77b810e9 | |
parent | 2a4d015ff896dc9e8d2219982da54c51a42482b8 (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/40490
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 5ae0237824aa..0f967955b11d 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() |