summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-06-30 18:45:38 -0400
committerSzymon Kłos <szymon.klos@collabora.com>2021-10-07 11:47:23 +0200
commitde1e60f01f5806cc55088846aaaf3429aea754fb (patch)
tree3c836f0c6c944f8531f001faa5fd4c8d0b24ce1d /sc/source
parentbd212a4f26ae4532bf2be3d1d35a60b67ac15ef5 (diff)
lok: sc: introduce LocalStartDrag method
Update the mouse mode to start drag, otherwise it will conflict with normal cell selection. Change-Id: I6d4939b704114e7de1c9c051459fd02100a7536c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118874 Tested-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/select.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx
index 89baed62a9f5..28d3133a0e49 100644
--- a/sc/source/ui/view/select.cxx
+++ b/sc/source/ui/view/select.cxx
@@ -204,6 +204,9 @@ void ScViewFunctionSet::BeginDrag()
if ( pWindow->IsTracking() )
pWindow->EndTracking( TrackingEventFlags::Cancel ); // abort selecting
+ if (comphelper::LibreOfficeKit::isActive())
+ pWindow->LocalStartDrag();
+
SC_MOD()->SetDragObject( pTransferObj.get(), nullptr ); // for internal D&D
pTransferObj->StartDrag( pWindow, nDragActions );