[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Aug 28 13:49:55 PDT 2012
sc/source/ui/view/cliputil.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7da3738ab903a180b5038ee92ad40869fdbff950
Author: Noel Power <noel.power at 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.yoshida at 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;
More information about the Libreoffice-commits
mailing list