[Libreoffice-commits] core.git: editeng/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 4 08:29:00 UTC 2019
editeng/source/editeng/impedit2.cxx | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
New commits:
commit 397271c7ddc02cea2688da4ea33c47a44f5d4800
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Apr 3 12:08:47 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Apr 4 10:28:32 2019 +0200
LOK logic is good for non-lok here
Change-Id: I7ad351800a55798e822596733f7fcb057e2e9aff
Reviewed-on: https://gerrit.libreoffice.org/70213
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index eb8961ced3ac..b5746f6ab2eb 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -582,18 +582,8 @@ bool ImpEditEngine::MouseButtonUp( const MouseEvent& rMEvt, EditView* pView )
{
if ( ( rMEvt.GetClicks() == 1 ) && rMEvt.IsLeft() && !rMEvt.IsMod2() )
{
-
- const SvxFieldItem* pFld;
- if ( comphelper::LibreOfficeKit::isActive() )
- {
- Point aLogicClick = pView->GetWindow()->PixelToLogic( rMEvt.GetPosPixel() );
- pFld = pView->GetField( aLogicClick );
- }
- else
- {
- pFld = pView->GetFieldUnderMousePointer();
- }
- if ( pFld )
+ Point aLogicClick = pView->GetWindow()->PixelToLogic(rMEvt.GetPosPixel());
+ if (const SvxFieldItem* pFld = pView->GetField(aLogicClick))
{
EditPaM aPaM( aCurSel.Max() );
sal_Int32 nPara = GetEditDoc().GetPos( aPaM.GetNode() );
More information about the Libreoffice-commits
mailing list