summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-24 10:19:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-24 10:42:59 +0100
commite9ce405103036b2fa0ae26d331a6cfc3465de10b (patch)
treecc8ebd94598144defa8800e2a96fbe4bca8f6cf9
parent7cd77d5cb0b6fd3343f2703c73e2dc4b65fc0e9e (diff)
Resolves: fdo#70571 don't crash when clicking link in toc
when link is in a toc, and Cursor in protected areas is disabled, causing the cursor to leap before the toc before trying to see what's under the cursor in order to jump to it Change-Id: Iaf348e3621df02628b4d2ac8c1165df7082237ed
-rw-r--r--sw/source/ui/docvw/edtwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index b4d38ecadf0c..31e4b700596f 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -4506,7 +4506,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
}
else
{
- if ( bExecHyperlinks )
+ if ( bExecHyperlinks && aCntntAtPos.aFnd.pAttr )
rSh.ClickToINetAttr( *(SwFmtINetFmt*)aCntntAtPos.aFnd.pAttr, nFilter );
}