diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-29 11:40:06 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-29 11:43:16 -0400 |
commit | ea0ac020160207a08de3168142abc2a74f17afd6 (patch) | |
tree | 90085d89f209f5d60257db7fa4a17d255d5d5e2d /sc/source | |
parent | fd65b90934d0c521de1f3b04214e364fd540f080 (diff) |
fdo#74322: Let's not handle cut mode here.
Things are a bit more complex in cut mode than what this method can handle.
Change-Id: Idadee23beff08c2df89d47bb237e8a2d2fd69dab
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/document10.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx index 2046b314e276..4112bb9d0ee3 100644 --- a/sc/source/core/data/document10.cxx +++ b/sc/source/core/data/document10.cxx @@ -57,6 +57,10 @@ bool ScDocument::CopyOneCellFromClip( sc::CopyFromClipContext& rCxt, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 ) { ScDocument* pClipDoc = rCxt.getClipDoc(); + if (pClipDoc->GetClipParam().mbCutMode) + // We don't handle cut and paste or moving of cells here. + return false; + ScRange aClipRange = pClipDoc->GetClipParam().getWholeRange(); if (aClipRange.aStart != aClipRange.aEnd) // The source is not really a single cell. Bail out. |