summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-14 13:18:35 +0200
committerNoel Grandin <noel@peralex.com>2014-02-17 14:04:28 +0200
commitd12f6c6f3c3f89442876c98e3d7a7d50901d36cb (patch)
tree00a3ac8fc85955c6283f2de1e3e7853ff59e4584
parentb008100d42913a23a631aa474904d9b3db03797e (diff)
cid#705946 dereference before null check
Change-Id: Icd2899ffa289189e753a22c40d6556f57266dcdb
-rw-r--r--sw/source/ui/app/docsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/app/docsh.cxx b/sw/source/ui/app/docsh.cxx
index 1f60704b0054..cbdd920b1823 100644
--- a/sw/source/ui/app/docsh.cxx
+++ b/sw/source/ui/app/docsh.cxx
@@ -608,7 +608,7 @@ sal_Bool SwDocShell::ConvertTo( SfxMedium& rMedium )
CalcLayoutForOLEObjects(); // format for OLE objets
// #i62875#
// reset compatibility flag <DoNotCaptureDrawObjsOnPage>, if possible
- if ( pWrtShell && pDoc &&
+ if ( pWrtShell &&
pDoc->get(IDocumentSettingAccess::DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE) &&
docfunc::AllDrawObjsOnPage( *pDoc ) )
{