[Libreoffice-commits] .: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 28 02:10:36 PDT 2012


 sc/source/ui/view/cliputil.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d27a7b8c5b96eb328918cc67b9b5562b8870f2ac
Author: Noel Power <noel.power at suse.com>
Date:   Mon Aug 27 18:02:18 2012 +0100

    allow paste & paste special for unmatching dest (single) range
    
    Change-Id: I420c044c9bcc49e479956f9118fb173a0350fda2

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