| author | Noel Power <noel.power@suse.com> | 2012-08-27 17:02:18 (GMT) |
|---|---|---|
| committer | Noel Power <noel.power@suse.com> | 2012-08-28 09:10:10 (GMT) |
| commit | d27a7b8c5b96eb328918cc67b9b5562b8870f2ac (patch) (side-by-side diff) | |
| tree | 791ac37c392585a0948666e7a6187af1dee483f1 | |
| parent | 043d6b6442c1f60838f9502a1e198a1e6a57a123 (diff) | |
| download | core-d27a7b8c5b96eb328918cc67b9b5562b8870f2ac.zip core-d27a7b8c5b96eb328918cc67b9b5562b8870f2ac.tar.gz | |
allow paste & paste special for unmatching dest (single) range
Change-Id: I420c044c9bcc49e479956f9118fb173a0350fda2
| -rw-r--r-- | sc/source/ui/view/cliputil.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/cliputil.cxx b/sc/source/ui/view/cliputil.cxx index 74ac721..723bb89 100644 --- a/sc/source/ui/view/cliputil.cxx +++ b/sc/source/ui/view/cliputil.cxx @@ -114,7 +114,7 @@ bool ScClipUtil::CheckDestRanges( SCCOL nCols = aTest.aEnd.Col() - aTest.aStart.Col() + 1; SCROW nRowTest = (nRows / nSrcRows) * nSrcRows; SCCOL nColTest = (nCols / nSrcCols) * nSrcCols; - if (nRows != nRowTest || nCols != nColTest) + if ( rDest.size() > 1 && ( nRows != nRowTest || nCols != nColTest ) ) { // Destination range is not a multiple of the source range. Bail out. return false; |
