summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-22 10:16:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-22 16:09:28 +0200
commitb30872826442ba1058d793dbef1533eda55fdfbf (patch)
tree4df3163c395602d8c72c4ee92899e52d6eed232c /sd
parent3bf0fbb267ea6c3a3c23efdeabbdced0724d65f1 (diff)
cid#1509233 Explicit null dereferenced
Change-Id: Ib48bc9fd9600115f00674eed385f9e2cdc80eafd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138676 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fusel.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx
index a525f3bfce89..ed7efc851414 100644
--- a/sd/source/ui/func/fusel.cxx
+++ b/sd/source/ui/func/fusel.cxx
@@ -273,6 +273,9 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
{
mpWindow->ReleaseMouse();
+ if (!aVEvt.mpURLField)
+ return true;
+
// If tiled rendering, let client handles URL execution and early returns.
if (comphelper::LibreOfficeKit::isActive())
{