summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-05-06 15:42:20 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2019-05-07 16:51:42 +0200
commit905634202afe1d8562ae321909a40ff6117af2ad (patch)
tree82018011e01d26130822ddb2bcbccb22d2d090fb /sc
parent4d76f6232289f6a875b30a4cc7dec1226ffb70cb (diff)
Resolves: tdf#124315 clear "Enter pastes" mode and marching ants overlay
Change-Id: Ief20ca2631c66c3c23410019ee0b7dfd9bd742a0 Reviewed-on: https://gerrit.libreoffice.org/71864 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 67d95af78b26d799e68859761dfe72771f71aeab) Reviewed-on: https://gerrit.libreoffice.org/71874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfun6.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index 8ab2a6d29e2d..f58008b2a4c4 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -329,6 +329,11 @@ void ScViewFunc::InsertCurrentTime(SvNumFormatType nReqFmt, const OUString& rUnd
}
else
{
+ // Clear "Enter pastes" mode.
+ rViewData.SetPasteMode( ScPasteFlags::NONE );
+ // Clear CopySourceOverlay in each window of a split/frozen tabview.
+ rViewData.GetViewShell()->UpdateCopySourceOverlay();
+
bool bForceReqFmt = false;
const double fCell = rDoc.GetValue( aCurPos);
// Combine requested date/time stamp with existing cell time/date, if any.