sc/source/ui/view/cliputil.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7da3738ab903a180b5038ee92ad40869fdbff950 Author: Noel Power <noel.po...@suse.com> Date: Mon Aug 27 18:02:18 2012 +0100 fdo#46250: Allow paste & paste special for unmatching dest (single) range. Change-Id: I420c044c9bcc49e479956f9118fb173a0350fda2 Signed-off-by: Kohei Yoshida <kohei.yosh...@gmail.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits