diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-25 10:41:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-25 15:04:40 +0100 |
commit | e0122fc683157b5f41724b9514e072f0ce5e5c15 (patch) | |
tree | a2b33ece6e68b48740d43a2649a89ac864d0519f /vcl | |
parent | 64ad7b44e3b36f538a23a851b0e9df7ee0df52b7 (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.hxx | 3 |
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) |