summaryrefslogtreecommitdiff
path: root/sc/source/core/data/document10.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/document10.cxx')
-rw-r--r--sc/source/core/data/document10.cxx16
1 files changed, 3 insertions, 13 deletions
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index bae227dbb3a0..c5bc3118a174 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -130,19 +130,9 @@ bool ScDocument::CopyOneCellFromClip(
aRefCxt.mnColDelta = nCol1 - aSrcPos.Col();
aRefCxt.mnRowDelta = nRow1 - aSrcPos.Row();
aRefCxt.mnTabDelta = rCxt.getTabStart() - aSrcPos.Tab();
- if (rCxt.getClipDoc()->GetClipParam().mbCutMode)
- {
- if (rCxt.getClipDoc()->GetPool() == GetPool())
- {
- aRefCxt.meMode = URM_MOVE;
- UpdateReference(aRefCxt, rCxt.getUndoDoc(), false);
- }
- }
- else
- {
- aRefCxt.meMode = URM_COPY;
- UpdateReference(aRefCxt, rCxt.getUndoDoc(), false);
- }
+ // Only Copy&Paste, for Cut&Paste we already bailed out early.
+ aRefCxt.meMode = URM_COPY;
+ UpdateReference(aRefCxt, rCxt.getUndoDoc(), false);
return true;
}