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

Winfried Donkers osc at dci-electronics.nl
Wed Jun 26 15:39:30 PDT 2013


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

New commits:
commit 253052788a9f99af782be3ec30a6812b5922ff28
Author: Winfried Donkers <osc at dci-electronics.nl>
Date:   Wed Jun 26 08:00:17 2013 +0200

    fdo#65856 allow shift cells in paste special for copy-mode
    
    Change-Id: I7a7e13104e7256da9a82e16e14ddfa04e35e7f8a
    Reviewed-on: https://gerrit.libreoffice.org/4525
    Tested-by: Eike Rathke <erack at redhat.com>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    (cherry picked from commit e513fffeac1f4a814f644f156d88fc8810af4e46)
    
    Signed-off-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 528191b..049df13 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1291,7 +1291,7 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq )
                                                      nClipStartX + nClipSizeX, nClipStartY + nClipSizeY, nStartTab );
                                     ScRange aDest( nStartX, nStartY, nStartTab,
                                                    nStartX + nRangeSizeX, nStartY + nRangeSizeY, nStartTab );
-                                    if ( aSource.Intersects( aDest ) )
+                                    if ( pOwnClip->GetDocument()->IsCutMode() && aSource.Intersects( aDest ) )
                                         pDlg->SetCellShiftDisabled( SC_CELL_SHIFT_DISABLE_DOWN | SC_CELL_SHIFT_DISABLE_RIGHT );
                                     else
                                     {


More information about the Libreoffice-commits mailing list