diff options
Diffstat (limited to 'sd/source/ui/docshell/docshel3.cxx')
-rw-r--r-- | sd/source/ui/docshell/docshel3.cxx | 4 |
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; |