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

Related: fdo#70571 allowing clicking on a hyperlink in a protected section

Change-Id: I6104ee3bb0928275a0e4ffb9a7ca1be37ebc1f9e
üst 19d7c034
...@@ -4429,8 +4429,9 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -4429,8 +4429,9 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_False ) ) if( rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_False ) )
{ {
// Do it again if we're not on a field to update the cursor accordingly // Do it again if we're not on a field/hyperlink to update the cursor accordingly
if ( SwContentAtPos::SW_FIELD != aCntntAtPos.eCntntAtPos ) if ( SwContentAtPos::SW_FIELD != aCntntAtPos.eCntntAtPos
&& SwContentAtPos::SW_INETATTR != aCntntAtPos.eCntntAtPos )
rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_True ); rSh.GetContentAtPos( aDocPt, aCntntAtPos, sal_True );
sal_Bool bViewLocked = rSh.IsViewLocked(); sal_Bool bViewLocked = rSh.IsViewLocked();
...@@ -4487,7 +4488,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -4487,7 +4488,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
} }
} }
} }
else else if ( SwContentAtPos::SW_INETATTR == aCntntAtPos.eCntntAtPos )
{ {
if ( bExecHyperlinks && aCntntAtPos.aFnd.pAttr ) if ( bExecHyperlinks && aCntntAtPos.aFnd.pAttr )
rSh.ClickToINetAttr( *(SwFmtINetFmt*)aCntntAtPos.aFnd.pAttr, nFilter ); 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