summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-04-18 22:24:03 +0200
committerEike Rathke <erack@redhat.com>2017-04-18 22:25:44 +0200
commit840ac578dc5c21731b927bad6113839c4c69c108 (patch)
treed0b144ae35acaa9300b22ce6dc8901b6f8cb9293
parentb44b97532196c39b3214618e00fa9cd456f8c0e8 (diff)
only handling copy&paste needed, cut&paste bailed out, tdf#105245 follow-up
Change-Id: I946d9f09e7571d347111ad66326ab375d153e298
-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;
}