summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-27 15:07:06 +0100
committerAndras Timar <andras.timar@collabora.com>2017-07-31 12:03:55 +0200
commit539347710a541aad217dce3e4ce4293927b28750 (patch)
tree6b542197ff0de66edc727d23265c3c6a00218dae
parentec5da615a8695caebe0370fa2de3b29134b6a379 (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> (cherry picked from commit 09716380e12ac2b7119afff20033ce2e7929ebd8)
-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()