tdf#156506 Fix failure to draw copy border on Windows
Revert portion of commit 9d68c794d6
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/+/155067
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user