sc/source/ui/view/tabvwshh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4ec888913bd21c91cd7b7728cb323d0c5889f780
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Oct 6 20:54:19 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Oct 10 07:23:59 2023 +0200

    fix ScTabViewShell::HasAccessibilityObjects
    
    been this way since it was introduced in
        commit 5cd1b592821d6870376f44aedfb527db07fd07d0
        Author: Sascha Ballach <s...@openoffice.org>
        Date:   Thu Feb 14 15:54:20 2002 +0000
        #95584#; call Broadcaster for Accessibility objects
    
    Change-Id: I1a79807cbb529c72a46e0e77e2999ae3f5a143ac
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157664
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 7d7a34635cd4d7e5d9c3ae123d5adfa071e85da0)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157713

diff --git a/sc/source/ui/view/tabvwshh.cxx b/sc/source/ui/view/tabvwshh.cxx
index ce38719bde67..d1263590a895 100644
--- a/sc/source/ui/view/tabvwshh.cxx
+++ b/sc/source/ui/view/tabvwshh.cxx
@@ -241,7 +241,7 @@ void ScTabViewShell::BroadcastAccessibility( const SfxHint 
&rHint )
 
 bool ScTabViewShell::HasAccessibilityObjects() const
 {
-    return pAccessibilityBroadcaster != nullptr;
+    return pAccessibilityBroadcaster && 
pAccessibilityBroadcaster->HasListeners();
 }
 
 bool ScTabViewShell::ExecuteRetypePassDlg(ScPasswordHash eDesiredHash)

Reply via email to