diff options
Diffstat (limited to 'sw/source/ui/uiview/view0.cxx')
-rw-r--r-- | sw/source/ui/uiview/view0.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/uiview/view0.cxx b/sw/source/ui/uiview/view0.cxx index 4936bcb28907..2e9a3bc783e7 100644 --- a/sw/source/ui/uiview/view0.cxx +++ b/sw/source/ui/uiview/view0.cxx @@ -497,14 +497,13 @@ void SwView::ExecViewOptions(SfxRequest &rReq) { SwDocShell *pDocSh = GetDocShell(); SwDoc *pDoc = pDocSh? pDocSh->GetDoc() : NULL; - SwRootFrm *pRootFrm = pDoc ? pDoc->GetRootFrm() : NULL; // right now we don't have view options for automatic grammar checking. Thus... sal_Bool bIsAutoGrammar = sal_False; aCfg.GetProperty( C2U( UPN_IS_GRAMMAR_AUTO ) ) >>= bIsAutoGrammar; - if (pDoc && pRootFrm && bIsAutoGrammar) - StartGrammarChecking( *pDoc, *pRootFrm ); + if (pDoc && bIsAutoGrammar) + StartGrammarChecking( *pDoc ); } } break; |