summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-18 11:17:41 +0200
committerNoel Grandin <noel@peralex.com>2014-02-19 09:42:16 +0200
commit14829a84ff4f77091767cf4503db0c8a6624f036 (patch)
tree5af67e2a781131e2304abd2f2238a6a977332e4f /sd
parentadefb376c68692d0063b75e5946565e71c7cfcce (diff)
cid#736797 dereference before null check
Change-Id: Ib279f66fcc349c75d7b3d26ba80356eea1697295
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/drawdoc3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index 6735414e06b9..caab663034fa 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -808,7 +808,7 @@ sal_Bool SdDrawDocument::InsertBookmarkAsPage(
sal_uInt16 nSdPageStart = (nInsertPos - 1) / 2;
sal_uInt16 nSdPageEnd = GetSdPageCount(PK_STANDARD) - nSdPageCount +
nSdPageStart - 1;
- const bool bRemoveEmptyPresObj = pBookmarkDoc &&
+ const bool bRemoveEmptyPresObj =
(pBookmarkDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) &&
(GetDocumentType() == DOCUMENT_TYPE_DRAW);