[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Thu Jul 27 15:11:11 UTC 2017


 sc/source/ui/Accessibility/AccessibleDocument.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 998e3d5cef63cb9c512737bce65519f5a86ba019
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jul 27 15:07:06 2017 +0100

    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 at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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()


More information about the Libreoffice-commits mailing list