Kaydet (Commit) e9ce4051 authored tarafından Caolán McNamara's avatar Caolán McNamara

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
üst 7cd77d5c
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment