summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorWinfried Donkers <osc@dci-electronics.nl>2013-06-26 08:00:17 +0200
committerEike Rathke <erack@redhat.com>2013-06-27 00:40:01 +0200
commite51def95b7b2d7627d97ca898846f3d3be791b3d (patch)
tree2fe9e227c17dc870617b517ed301314c33bbfffb /sc/source
parent402a919c54bca942941e8ef2f0b340047fa152fc (diff)
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@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com> (cherry picked from commit e513fffeac1f4a814f644f156d88fc8810af4e46) Signed-off-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/cellsh1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index e51a33afe31b..f1bc41325ddc 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -1294,7 +1294,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
{