summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAndre Fischer <af@openoffice.org>2010-06-29 17:20:41 +0200
committerAndre Fischer <af@openoffice.org>2010-06-29 17:20:41 +0200
commitcda79d479c7e49216e9dd1fc175c20dd93b15640 (patch)
tree836a5d3cfae40d3eeb0eed3806d2010cf6dd490c /sd
parent8c75156a84a5088506c49101efad199dc7b8d05e (diff)
impress193: #i112301# Guarding againts missing view.
Diffstat (limited to 'sd')
-rwxr-xr-xsd/source/ui/view/Outliner.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx
index 356c03b82387..7c94e7b27b07 100755
--- a/sd/source/ui/view/Outliner.cxx
+++ b/sd/source/ui/view/Outliner.cxx
@@ -942,7 +942,9 @@ void Outliner::RestoreStartPosition (void)
else if (mpViewShell->ISA(OutlineViewShell))
{
// Set cursor to its old position.
- GetView(0)->SetSelection (maStartSelection);
+ OutlinerView* pView = GetView(0);
+ if (pView != NULL)
+ pView->SetSelection (maStartSelection);
}
}
}