summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshel3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/docshell/docshel3.cxx')
-rw-r--r--sd/source/ui/docshell/docshel3.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx
index eeef7c8dbe8c..8ef2d9533e39 100644
--- a/sd/source/ui/docshell/docshel3.cxx
+++ b/sd/source/ui/docshell/docshel3.cxx
@@ -362,6 +362,8 @@ void DrawDocShell::Execute( SfxRequest& rReq )
break;
case SID_SPELLCHECK_IGNORE_ALL:
{
+ if (!mpViewShell)
+ return;
SdrView* pSdrView = mpViewShell->GetDrawView();
if (!pSdrView)
return;
@@ -383,6 +385,8 @@ void DrawDocShell::Execute( SfxRequest& rReq )
break;
case SID_SPELLCHECK_APPLY_SUGGESTION:
{
+ if (!mpViewShell)
+ return;
SdrView* pSdrView = mpViewShell->GetDrawView();
if (!pSdrView)
return;