diff options
author | Andre Herbst <moormaster@gmx.net> | 2024-11-03 16:13:19 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-12-05 06:51:46 +0100 |
commit | 112736d1ea5234a66c669e2b2999229f33f05c71 (patch) | |
tree | 198dda3290a457992b59c9fe78c74facfc354095 | |
parent | abfbca2719767516d5a35ee641ddd0d96d93e4ea (diff) |
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.grandin@collabora.co.uk>
Tested-by: Jenkins
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
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() ) |