diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-19 16:14:31 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-08-19 20:28:49 +0000 |
commit | 47ad11491b4a9dcaefd5f9184e34814d0f7520f9 (patch) | |
tree | f9f37712e262153d902aaabe1b3d9a25b538c1ea | |
parent | af76d0d6645a15447139bcb1fac1ec32033441a5 (diff) |
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@suse.de>
Tested-by: Kohei Yoshida <kohei.yoshida@suse.de>
(cherry picked from commit 48cfdaa4fa453af03d18832e3765ffd65a5e107f)
Reviewed-on: https://gerrit.libreoffice.org/5517
Reviewed-by: Eike Rathke <erack@redhat.com>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | sc/source/core/data/column.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index b687489cc276..800c200d3d44 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); |