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>
This commit is contained in:
Caolán McNamara 2020-02-25 10:41:12 +00:00
parent 64ad7b44e3
commit e0122fc683

View file

@ -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)