summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-25 10:41:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-25 15:04:40 +0100
commite0122fc683157b5f41724b9514e072f0ce5e5c15 (patch)
treea2b33ece6e68b48740d43a2649a89ac864d0519f /vcl
parent64ad7b44e3b36f538a23a851b0e9df7ee0df52b7 (diff)
turn off dnd target indicator on old target when changing target
Change-Id: Ia1cd181789679fd3f99c791806bd53cb74076556 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89421 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/treeglue.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/treeglue.hxx b/vcl/inc/treeglue.hxx
index ebc0e57b2ccb..ac7416590e92 100644
--- a/vcl/inc/treeglue.hxx
+++ b/vcl/inc/treeglue.hxx
@@ -129,7 +129,10 @@ public:
virtual SvTreeListEntry* GetDropTarget(const Point& rPos) override
{
+ SvTreeListEntry* pOldTargetEntry = pTargetEntry;
pTargetEntry = pImpl->GetEntry(rPos);
+ if (pOldTargetEntry != pTargetEntry)
+ ImplShowTargetEmphasis(pOldTargetEntry, false);
// scroll
if (rPos.Y() < 12)