summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authormerttumer <mert.tumer@collabora.com>2021-04-21 12:05:07 +0300
committerAndras Timar <andras.timar@collabora.com>2021-05-16 23:47:24 +0200
commit2a96be0501fe9a92af133d584e33897c5842bede (patch)
tree2a9dc267d545fd0f962afb496631c1100f535e62 /svx
parent4e7e2aa66cac4ae3598e861d2ca2d13d5b749311 (diff)
lok: Edit the click selected cell on table selection
for LOK case, it should start editing when table is selected from the cell that is under the cursor instead of selecting the table object. Change-Id: Ibb3fa41377b76edcdcc2be7419838a151ff765fe Signed-off-by: merttumer <mert.tumer@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114386 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114646 Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdview.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 71c377ff1517..64dde7691e7a 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -48,6 +48,8 @@
#include <sal/log.hxx>
#include <vcl/ptrstyle.hxx>
+#include <comphelper/lok.hxx>
+
SdrViewEvent::SdrViewEvent()
: pHdl(nullptr),
@@ -374,7 +376,9 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co
// for e.g. URL links when hoovering and clicking
// them will not work. Tried several other changes,
// but this one safely keeps existing behaviour as-is.
- eHit = SdrHitKind::UnmarkedObject;
+ // Except for the LOK. LOK doesn't have hoovering popup
+ // feature.
+ eHit = comphelper::LibreOfficeKit::isActive() ? SdrHitKind::TextEditObj : SdrHitKind::UnmarkedObject;
break;
default:
break;