[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Mon Jul 8 21:55:54 PDT 2013


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

New commits:
commit 08ecce611ac190dea8f0ec9e2407ae527cb817ed
Author: Kohei Yoshida <kohei.yoshida at 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 ea48739..c69a3c1 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();
 }
 


More information about the Libreoffice-commits mailing list