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

New commits:
commit 3f0a0836589232eb2a830c097b2ccb03f4c0d4c5
Author: Kohei Yoshida <kohei.yosh...@gmail.com>
Date:   Tue Jul 9 00:54:46 2013 -0400

    Group a new formula cell in CopyCellToDocument.
    
    Change-Id: I8a8a24f4d40210700979ef249636b85b6b81e8cd

diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index bb77a2e..c8fadce 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1535,7 +1535,7 @@ void ScColumn::CopyCellToDocument( SCROW nSrcRow, SCROW 
nDestRow, ScColumn& rDes
             ScAddress aDestPos = p->aPos;
             aDestPos.SetRow(nDestRow);
             ScFormulaCell* pNew = new ScFormulaCell(*p, *rDestCol.pDocument, 
aDestPos);
-            rDestCol.maCells.set(nDestRow, pNew);
+            rDestCol.SetFormulaCell(nDestRow, pNew);
         }
         break;
         case sc::element_type_empty:
@@ -1550,7 +1550,6 @@ void ScColumn::CopyCellToDocument( SCROW nSrcRow, SCROW 
nDestRow, ScColumn& rDes
     else
         rDestCol.maCellTextAttrs.set_empty(nDestRow, nDestRow);
 
-    rDestCol.RegroupFormulaCells(nDestRow);
     rDestCol.CellStorageModified();
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to