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
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index 2332f88c..b632d40 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.