sd/source/ui/annotations/annotationwindow.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 86617760eb8bc6c0b2713b9496ade9203d1077a5 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Oct 1 21:09:48 2016 +0100 Engine() return mpOutliner, so can crash if Engine() used post delete if Deactivate called during ::dispose Change-Id: I066dcc52278f12442de0281c8d783353aed5a186 diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index 0d29d3d..8e2c865 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -287,6 +287,7 @@ void AnnotationWindow::dispose() mpMeta.disposeAndClear(); delete mpOutlinerView; delete mpOutliner; + mpOutliner = nullptr; mpVScrollbar.disposeAndClear(); mpTextWindow.disposeAndClear(); FloatingWindow::dispose(); @@ -599,6 +600,9 @@ void AnnotationWindow::Deactivate() if (mrManager.getPopupMenuActive()) return; + if (!mpOutliner) //in dispose + return; + Reference< XAnnotation > xAnnotation( mxAnnotation ); // write changed text back to annotation
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits