summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorsj <sj@openoffice.org>2010-07-02 13:45:26 +0200
committersj <sj@openoffice.org>2010-07-02 13:45:26 +0200
commitf7fdc198466a30026d24e3c55fbbf17ea10c05cc (patch)
treede1a219e5f6c8f8a8366c6671375335655a4a4ba /sd
parentcfe3fc33b99195169757914e39db4493f8a352c2 (diff)
parenta1e23a5bc46a35405cd5c547e3e12ed06fc5144d (diff)
merged heads
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);
}
}
}