summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2009-10-20 11:13:10 +0000
committerAndre Fischer <af@openoffice.org>2009-10-20 11:13:10 +0000
commit280ea32b9dd5b975a6d94f3555145dc3898c09ec (patch)
tree6b19303530b9f3857d7ee475df86ee9e5b5aacc3
parentc4b49b68e000cd0892af5d5c1335f4ff9365a6ad (diff)
#i105895# Prevent old view shell from being deleted too early.
-rw-r--r--sd/source/ui/view/Outliner.cxx3
1 files changed, 3 insertions, 0 deletions
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<ViewShell> pOldViewShell (mpViewShell);
+
ViewShellBase* pBase = PTR_CAST(ViewShellBase,SfxViewShell::Current());
if (pBase != NULL)
mpViewShell = pBase->GetMainViewShell();