summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index 69e524dd93b6..e6d25e366d9f 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -2556,7 +2556,10 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount(
SwViewOption aOpt( *pViewShell->GetViewOptions() );
aOpt.setBrowseMode( false );
pViewShell->ApplyViewOptions( aOpt );
- pSwView->RecheckBrowseMode();
+ if (pSwView)
+ {
+ pSwView->RecheckBrowseMode();
+ }
}
// reformating the document for printing will show the changes in the view