diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2018-05-11 22:33:00 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-07-04 10:31:04 +0200 |
commit | d37cbe0254ae64b7de303ff186045ec7b2dbc2f5 (patch) | |
tree | f7d7261a0ed2a20414b5a555a2efbe95b241b568 /editeng | |
parent | bb9c949c31d8a17a34baeaebb7bbac81f9056d61 (diff) |
lok: sc: ctrl-clicking links doesn't work
I think there is no reason for not execuring the code below
if ((bDouble || bIsTiledRendering) && .... ) { ... }
for both desktop and online.
So since the code for open the clicked URL is below such if
clause, I changed the code so that we return only when it's really a
double click event.
Moreover I reverted back the code for executing the list validation
pop-up to its original place, since there is no more the need to have
it executed in two places.
Change-Id: Idbec2e6e45cd7ee8282005169e1132a11d4cac33
Reviewed-on: https://gerrit.libreoffice.org/54150
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index d66bf4e6e973..67fa9f3e0fed 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -595,7 +595,17 @@ bool ImpEditEngine::MouseButtonUp( const MouseEvent& rMEvt, EditView* pView ) { if ( ( rMEvt.GetClicks() == 1 ) && rMEvt.IsLeft() && !rMEvt.IsMod2() ) { - const SvxFieldItem* pFld = pView->GetFieldUnderMousePointer(); + + const SvxFieldItem* pFld; + if ( comphelper::LibreOfficeKit::isActive() ) + { + Point aLogicClick = pView->GetWindow()->PixelToLogic( rMEvt.GetPosPixel() ); + pFld = pView->GetField( aLogicClick ); + } + else + { + pFld = pView->GetFieldUnderMousePointer(); + } if ( pFld ) { EditPaM aPaM( aCurSel.Max() ); |