From 4ec44fc1a8cf7cdfb6ddceacdaf7354551064971 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Oct 2015 15:24:02 +0100 Subject: afl-eventtesting: view is null but docshell isn't and we're using the view apparently to get the shell we already have Change-Id: Ibc2021245191a75f65ec655a2d1929601a2611b5 --- sd/source/ui/annotations/annotationwindow.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sd/source/ui/annotations/annotationwindow.cxx') diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index 693f84e5aee5..e8ea2e9c8da9 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -204,7 +204,6 @@ void AnnotationTextWindow::MouseButtonDown( const MouseEvent& rMEvt ) GrabFocus(); if ( mpOutlinerView ) mpOutlinerView->MouseButtonDown( rMEvt ); - // todo mpOutlinerView->DocView()->GetViewFrame()->GetBindings().InvalidateAll(sal_False); } void AnnotationTextWindow::MouseButtonUp( const MouseEvent& rMEvt ) @@ -276,7 +275,6 @@ AnnotationWindow::AnnotationWindow( AnnotationManagerImpl& rManager, DrawDocShel : FloatingWindow(pParent, WB_SYSTEMWINDOW|WB_BORDER|WB_NEEDSFOCUS) , mrManager( rManager ) , mpDocShell( pDocShell ) -, mpView( pDocShell->GetViewShell()->GetView() ) , mpDoc( pDocShell->GetDoc() ) , mpOutlinerView(0) , mpOutliner(0) @@ -638,7 +636,7 @@ void AnnotationWindow::Deactivate() if( mpDoc->IsUndoEnabled() ) mpDoc->EndUndo(); - DocView()->GetDocSh()->SetModified(); + mpDocShell->SetModified(); } } -- cgit