diff options
author | Noel Power <noel.power@suse.com> | 2012-08-27 18:02:18 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2012-08-28 10:10:10 +0100 |
commit | d27a7b8c5b96eb328918cc67b9b5562b8870f2ac (patch) | |
tree | 791ac37c392585a0948666e7a6187af1dee483f1 /sc | |
parent | Missing using com::sun::star::frame::DispatchHelper (diff) | |
download | core-d27a7b8c5b96eb328918cc67b9b5562b8870f2ac.tar.gz core-d27a7b8c5b96eb328918cc67b9b5562b8870f2ac.zip |
allow paste & paste special for unmatching dest (single) range
Change-Id: I420c044c9bcc49e479956f9118fb173a0350fda2
Diffstat (limited to 'sc')
-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 74ac721e403d..723bb899a09a 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; |