summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2018-05-10 23:13:12 +0200
committerAndras Timar <andras.timar@collabora.com>2018-07-04 09:37:23 +0200
commit96928bb74a993f3020ed71776d11b9849501f90c (patch)
treea23625dd071f3c97579590fc13f9df9b83233e94 /editeng
parent5a440ae57623fac8b68f9f2d0824e6db346f735f (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/54151 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 4c2c0c73a3e4..f3c9930ed9e8 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -587,7 +587,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() );