summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-07 11:06:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-07 15:20:43 +0200
commitfd1a4fddad5932c514199de0f8a7b5a2f82ce437 (patch)
treeb20748050858676c9664c158a7b469adfcb79e40 /sw/source
parent1742ac5b784922032fb9aae5e61909bd9ab3c578 (diff)
tdf#132477 don't leave removed row highlighted
so that an attempt is made to unhighlight it in dnd post-processing Change-Id: I23fdf407d53c22a6bfd697e5e23c450f009c67b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93629 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/utlui/content.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 87ae08cfcecb..44ce6c197a9e 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1092,6 +1092,9 @@ sal_Int8 SwContentTree::ExecuteDrop(const ExecuteDropEvent& rEvt)
nTargetPos = GetWrtShell()->getIDocumentOutlineNodesAccess()->getOutlineNodesCount() - 1;
}
+ // remove the drop highlight before we change the contents of the tree so we don't
+ // try and dereference a removed entry in post-processing drop
+ m_xTreeView->unset_drag_dest_row();
MoveOutline(nTargetPos);
}