summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/sdmod1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 7310418dc867..584b5df403c0 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -286,7 +286,7 @@ void SdModule::OutlineToImpress (SfxRequest& rRequest)
::sd::ViewShell* pViewSh = pDocSh->GetViewShell();
- if (pViewSh)
+ if (pViewSh && pDoc)
{
// AutoLayouts have to be finished
pDoc->StopWorkStartupDelay();