tdf#156506 Fix failure to draw copy border on Windows
Revert portion of commit 9d68c794d67259a38de1465090f6f1e7fb588d62
that stops the animated border when a copy action is performed in
a different document by cancelling the animated border.
While the change worked on macOS and Linux, on Windows it stops
the currently active copy border so revert this fix.
Change-Id: I0dbdc8b1bf3077eecadbbe591a27e60ef3d48b7a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155038
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index 1a8216e..ec5914a 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -557,18 +557,6 @@ IMPL_LINK( ScCellShell, ClipboardChanged, TransferableDataHelper*, pDataHelper,
rBindings.Invalidate( SID_PASTE_AS_LINK );
rBindings.Invalidate( SID_PASTE_TEXTIMPORT_DIALOG );
rBindings.Invalidate( SID_CLIPBOARD_FORMAT_ITEMS );
// Fix failure to stop the animated border when a copy action is
// performed in a different document by cancelling the animated border.
// This transferable has lost ownership of the system clipboard so,
// in essence, the previous copy action that created this transferable
// has been cancelled.
if ( !GetViewData().IsAnyFillMode() )
{
GetViewData().SetPasteMode( ScPasteFlags::NONE );
// Clear CopySourceOverlay in each window of a split/frozen tabview
GetViewData().GetView()->UpdateCopySourceOverlay();
}
}
namespace {