[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - sc/source

Aditya (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 22 11:16:57 UTC 2019


 sc/source/ui/view/gridwin.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 00a3fb87878720731264ec2d118675ba9a78e745
Author:     Aditya <adityasahu1511 at gmail.com>
AuthorDate: Thu Nov 21 11:08:53 2019 +0530
Commit:     Xisco FaulĂ­ <xiscofauli at libreoffice.org>
CommitDate: Fri Nov 22 12:16:17 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.kaganski at collabora.com>
    (cherry picked from commit 844b4ac41009143092ef08f163783d48dfbe9b77)
    Reviewed-on: https://gerrit.libreoffice.org/83450
    Reviewed-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>

diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 930843825c44..aa62d67473cd 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -3216,7 +3216,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 =


More information about the Libreoffice-commits mailing list