summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAditya <adityasahu1511@gmail.com>2019-11-21 11:08:53 +0530
committerMike Kaganski <mike.kaganski@collabora.com>2019-11-21 19:00:13 +0100
commit844b4ac41009143092ef08f163783d48dfbe9b77 (patch)
tree438cd4a2b745ebe8063edca482a4c22291972a80 /sc
parentb07b192720702ff1f0385b6c6a521117f93b7038 (diff)
tdf#47490: Show overwrite warning when pasting data using "Enter"
In Calc when a cell is copied and its value is filled/pasted to different cell(s) by using the "Enter" key when focus is on selected cells -- replace warning is not shown even if the selected cells have values of their own inside it. The old data is simply lost. Provide a replace warning dialog box whenever such a case is encountered. Change-Id: I13acb424bc449e096512b5a0864ebc47a407f234 Reviewed-on: https://gerrit.libreoffice.org/83333 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/gridwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 45f5181ef243..e5b7d9e8756e 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -3220,7 +3220,7 @@ void ScGridWindow::KeyInput(const KeyEvent& rKEvt)
else if( rKeyCode.GetCode() == KEY_RETURN && pViewData->IsPasteMode() )
{
ScTabViewShell* pTabViewShell = pViewData->GetViewShell();
- ScClipUtil::PasteFromClipboard( pViewData, pTabViewShell, false );
+ ScClipUtil::PasteFromClipboard( pViewData, pTabViewShell, true );
// Clear clipboard content.
uno::Reference<datatransfer::clipboard::XClipboard> xSystemClipboard =