diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-02 15:07:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-02 18:11:46 +0100 |
commit | c43bcb42dcd9b76a203778ea825770a4b289a0f4 (patch) | |
tree | 7d8556bdeace72a9e952bc5f797570c102294109 | |
parent | 5876ae7e4b6ea8023cfa165998f4306cfe63b70b (diff) |
cid#1455210 Dereference before null check
Change-Id: Iadf78e41afabc8e3468e23bd5b249e47c019c843
Reviewed-on: https://gerrit.libreoffice.org/81936
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index ba1152da21b6..43db80c7ec45 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -886,7 +886,7 @@ void SlotManager::RenameSlide(const SfxRequest& rRequest) OUString aTitle; if( rRequest.GetSlot() == SID_RENAME_MASTER_PAGE ) aTitle = SdResId( STR_TITLE_RENAMEMASTER ); - else if (pDrView && pDrView->GetDoc().GetDocumentType() == DocumentType::Draw) + else if (pDrView->GetDoc().GetDocumentType() == DocumentType::Draw) aTitle = SdResId( STR_TITLE_RENAMEPAGE ); else aTitle = SdResId( STR_TITLE_RENAMESLIDE ); |