[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - sc/source

Caolán McNamara caolanm at redhat.com
Mon Aug 19 08:18:53 PDT 2013


 sc/source/core/data/column.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 48cfdaa4fa453af03d18832e3765ffd65a5e107f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Aug 19 16:14:31 2013 +0100

    Resolves: fdo#68220 wrong index into source table
    
    code in master is all very different, so 4-1-* only I think
    
    Change-Id: I9277faa462b66a38c7da3ba9a92b0381c67cfe23
    Reviewed-on: https://gerrit.libreoffice.org/5515
    Reviewed-by: Kohei Yoshida <kohei.yoshida at suse.de>
    Tested-by: Kohei Yoshida <kohei.yoshida at suse.de>

diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index b687489..800c200 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1361,7 +1361,7 @@ void ScColumn::CopyCellToDocument( SCROW nSrcRow, SCROW nDestRow, ScColumn& rDes
     }
 
     ScBaseCell* pDestCell =
-        maItems[nSrcRow].pCell->Clone(
+        maItems[nIndex].pCell->Clone(
             *rDestCol.pDocument, ScAddress(rDestCol.nCol, nDestRow, rDestCol.nTab));
 
     rDestCol.Insert(nDestRow, pDestCell);


More information about the Libreoffice-commits mailing list