diff options
author | Henry Castro <hcastro@collabora.com> | 2021-06-30 18:45:38 -0400 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-10-07 11:47:23 +0200 |
commit | de1e60f01f5806cc55088846aaaf3429aea754fb (patch) | |
tree | 3c836f0c6c944f8531f001faa5fd4c8d0b24ce1d /sc/source | |
parent | bd212a4f26ae4532bf2be3d1d35a60b67ac15ef5 (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.cxx | 3 |
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 ); |