sc/source/ui/view/gridwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 844b4ac41009143092ef08f163783d48dfbe9b77 Author: Aditya <adityasahu1...@gmail.com> AuthorDate: Thu Nov 21 11:08:53 2019 +0530 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Thu Nov 21 19:00:13 2019 +0100 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.kagan...@collabora.com> 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 = _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits