sc/source/ui/view/gridwin.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 112736d1ea5234a66c669e2b2999229f33f05c71 Author: Andre Herbst <moormas...@gmx.net> AuthorDate: Sun Nov 3 16:13:19 2024 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Dec 5 06:51:46 2024 +0100 tdf#163752 fix: hide drag target border on cancellation of d&d operation Not relying on rData.pCellTransfer anymore since it is always null when rEvt.mbLeaving is true. Change-Id: I4755e8f9b62efacd2eb4d515e1993578beadef09 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175970 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index cdd7d2d7a464..2a73bc1857fa 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -4228,10 +4228,7 @@ sal_Int8 ScGridWindow::AcceptDrop( const AcceptDropEvent& rEvt ) if ( rEvt.mbLeaving ) { DrawMarkDropObj( nullptr ); - if ( rData.pCellTransfer ) - return AcceptPrivateDrop( rEvt, rData ); // hide drop marker for internal D&D - else - return rEvt.mnAction; + return AcceptPrivateDrop( rEvt, rData ); // hide drop marker for internal D&D } if ( mrViewData.GetDocShell()->IsReadOnly() )