summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-08-28 23:10:18 +0200
committerMichael Stahl <mstahl@redhat.com>2017-08-28 23:32:04 +0200
commit53587dc7969b023416d865b516b7e800fc5de33a (patch)
tree4aae3351507fc404c2cad2e87f2a341ca3c38b3e /sd
parentc220f42d4d91a8903ceec302d718b5f30365e98e (diff)
sd: AccessibleSlideSorterView: don't register twice at ViewShell
Triggers assert in SfxListener::StartListening() Change-Id: I17f165d600fa789d7ce8d7b2296988064c5d5844
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/accessibility/AccessibleSlideSorterView.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
index b530e3ee8471..8268c5506643 100644
--- a/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
+++ b/sd/source/ui/accessibility/AccessibleSlideSorterView.cxx
@@ -796,8 +796,11 @@ void AccessibleSlideSorterView::Implementation::ReleaseListeners()
if (mbListeningToDocument)
{
- if (mrSlideSorter.GetViewShell() != nullptr)
+ if (mrSlideSorter.GetViewShell() != nullptr && !IsListening(*mrSlideSorter.GetViewShell()))
+ { // ??? is it even possible that ConnectListeners is called with no
+ // view shell and this one with a view shell?
StartListening(*mrSlideSorter.GetViewShell());
+ }
EndListening (*mrSlideSorter.GetModel().GetDocument());
mbListeningToDocument = false;
}