diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-18 11:17:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-19 09:42:16 +0200 |
commit | 14829a84ff4f77091767cf4503db0c8a6624f036 (patch) | |
tree | 5af67e2a781131e2304abd2f2238a6a977332e4f /sd | |
parent | cid#736794 dereference before null check (diff) | |
download | core-14829a84ff4f77091767cf4503db0c8a6624f036.tar.gz core-14829a84ff4f77091767cf4503db0c8a6624f036.zip |
cid#736797 dereference before null check
Change-Id: Ib279f66fcc349c75d7b3d26ba80356eea1697295
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc3.cxx | 2 |
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); |