summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-03 12:08:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-04-04 10:28:32 +0200
commit397271c7ddc02cea2688da4ea33c47a44f5d4800 (patch)
tree915e11143500b76b23b57e8da4ed44932dc91411 /editeng
parent57a93c8cabff4581301d26d736f0cb078cf86d11 (diff)
LOK logic is good for non-lok here
Change-Id: I7ad351800a55798e822596733f7fcb057e2e9aff Reviewed-on: https://gerrit.libreoffice.org/70213 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit2.cxx14
1 files changed, 2 insertions, 12 deletions
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() );