From 280ea32b9dd5b975a6d94f3555145dc3898c09ec Mon Sep 17 00:00:00 2001 From: Andre Fischer Date: Tue, 20 Oct 2009 11:13:10 +0000 Subject: #i105895# Prevent old view shell from being deleted too early. --- sd/source/ui/view/Outliner.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sd/source/ui/view/Outliner.cxx') diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 233976585e58..ba5836e8f1db 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -334,6 +334,9 @@ void Outliner::EndSpelling (void) { if (mbViewShellValid) { + // Keep old view shell alive until we release the outliner view. + ::boost::shared_ptr pOldViewShell (mpViewShell); + ViewShellBase* pBase = PTR_CAST(ViewShellBase,SfxViewShell::Current()); if (pBase != NULL) mpViewShell = pBase->GetMainViewShell(); -- cgit