summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-29 09:53:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-03-29 13:07:07 +0200
commitce604711dae68c5bdb6a92ebeb6f757ff1b89e3b (patch)
treef8ff7a8f61926e271eb742ece6c64ef9074c0acc /sd
parent8d1de00d3efb0f772b1c64c315bd337601b14d91 (diff)
coverity#1433644 silence Dereference after null check
Change-Id: I699fb3e07d21dc1852c0d50d4a7d478bcf1d1a96 Reviewed-on: https://gerrit.libreoffice.org/52063 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsClipboard.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index fae32538b324..f9666f300961 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -460,6 +460,8 @@ void Clipboard::CreateSlideTransferable (
pActionWindow = pViewShell->GetActiveWindow();
}
+ assert(pActionWindow);
+
pTransferable->SetStartPos (pActionWindow->PixelToLogic(
pActionWindow->GetPointerPosPixel()));
pTransferable->SetObjectDescriptor (std::move(pObjDesc));