summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
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 /sfx2/source/dialog/templdlg.cxx
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 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index a6d88a2ffade..e706d9de3c21 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -131,7 +131,7 @@ sal_Int8 SfxCommonTemplateDialog_Impl::AcceptDrop(const AcceptDropEvent& rEvt, c
// to enable the autoscroll when we're close to the edges
weld::TreeView* pTreeView = mxTreeBox->get_visible() ? mxTreeBox.get() : mxFmtLb.get();
- pTreeView->get_dest_row_at_pos(rEvt.maPosPixel, nullptr);
+ pTreeView->get_dest_row_at_pos(rEvt.maPosPixel, nullptr, true);
return DND_ACTION_MOVE;
}
@@ -187,7 +187,7 @@ sal_Int8 SfxCommonTemplateDialog_Impl::ExecuteDrop(const ExecuteDropEvent& rEvt)
return DND_ACTION_NONE;
std::unique_ptr<weld::TreeIter> xTarget(mxTreeBox->make_iterator());
- if (!mxTreeBox->get_dest_row_at_pos(rEvt.maPosPixel, xTarget.get()))
+ if (!mxTreeBox->get_dest_row_at_pos(rEvt.maPosPixel, xTarget.get(), true))
{
// if nothing under the mouse, use the last row
int nChildren = mxTreeBox->n_children();