diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-08-28 23:10:18 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-28 23:32:04 +0200 |
commit | 53587dc7969b023416d865b516b7e800fc5de33a (patch) | |
tree | 4aae3351507fc404c2cad2e87f2a341ca3c38b3e | |
parent | update updater icon (diff) | |
download | core-53587dc7969b023416d865b516b7e800fc5de33a.tar.gz core-53587dc7969b023416d865b516b7e800fc5de33a.zip |
sd: AccessibleSlideSorterView: don't register twice at ViewShell
Triggers assert in SfxListener::StartListening()
Change-Id: I17f165d600fa789d7ce8d7b2296988064c5d5844
-rw-r--r-- | sd/source/ui/accessibility/AccessibleSlideSorterView.cxx | 5 |
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; } |