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

Caolán McNamara caolanm at redhat.com
Mon Aug 19 13:29:12 PDT 2013


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

New commits:
commit 47ad11491b4a9dcaefd5f9184e34814d0f7520f9
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>
    (cherry picked from commit 48cfdaa4fa453af03d18832e3765ffd65a5e107f)
    Reviewed-on: https://gerrit.libreoffice.org/5517
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

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