summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-06-18 11:53:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-06-18 16:05:42 +0200
commit573138efec7fa28a98ba3b0301f6e0a97dac7978 (patch)
tree7559a661e13e2f3f99a0d9dc8e0a182e31cc5d3e /basctl
parent0380917ad3e0054039f9a996cfcc025d93c28dc3 (diff)
distinguish active dnd-operation case from simple query case
Change-Id: I1d8e95e46b45c71c0c83316ab4f19ba85eddcf75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96598 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/moduldlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index 7aeae822a7bb..92c3ee9654ff 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -240,7 +240,7 @@ private:
{
// to enable the autoscroll when we're close to the edges
weld::TreeView& rWidget = m_rTreeView.get_widget();
- rWidget.get_dest_row_at_pos(rEvt.maPosPixel, nullptr);
+ rWidget.get_dest_row_at_pos(rEvt.maPosPixel, nullptr, true);
weld::TreeView* pSource = rWidget.get_drag_source();
if (!pSource)
@@ -291,7 +291,7 @@ private:
return DND_ACTION_NONE;
std::unique_ptr<weld::TreeIter> xEntry(rWidget.make_iterator());
- bool bEntry = rWidget.get_dest_row_at_pos(rEvt.maPosPixel, xEntry.get());
+ bool bEntry = rWidget.get_dest_row_at_pos(rEvt.maPosPixel, xEntry.get(), true);
// don't drop on a BasicManager (nDepth == 0)
sal_uInt16 nDepth = bEntry ? m_rTreeView.get_iter_depth(*xEntry) : 0;