summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-09 00:54:46 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-11 00:25:33 -0400
commiteca428bf03ed71279c985ce6862570f7c8ebacb3 (patch)
treea84afb0238035b02f68ccfc2a8580ee430c974b5
parent45f02f1776f183474c8265b2eb1be00ca9cf384a (diff)
Group a new formula cell in CopyCellToDocument.
Change-Id: I8a8a24f4d40210700979ef249636b85b6b81e8cd
-rw-r--r--sc/source/core/data/column.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index ea487391a02f..c69a3c17fc57 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();
}