summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-06-04 12:48:36 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-06-04 12:50:11 -0400
commit457c6ebfef707d9187b9e8903886d79a80d24938 (patch)
tree8232792d43bb229672bd21471704422a4c6b3fd0 /sc
parent74d6a5985f02e5f1f3933f639ae8e5f7bcb8621f (diff)
The 4th argument is of wrong type.
The 4th argument of this ScFormulaCell constructor expects a clone flag, not grammar. And passing that causes a misbehavior when copying formulas down the column. Change-Id: I93663526eb98dd7bfa1160a151de3ef15801f98d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column4.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index 4acb374bb673..a8838915af3a 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -350,8 +350,7 @@ void ScColumn::CloneFormulaCell( const ScFormulaCell& rSrc, const std::vector<sc
if (nLen == 1)
{
// Single, ungrouped formula cell.
- ScFormulaCell* pCell =
- new ScFormulaCell(rSrc, *pDocument, aPos, pDocument->GetGrammar());
+ ScFormulaCell* pCell = new ScFormulaCell(rSrc, *pDocument, aPos);
pCell->StartListeningTo(aCxt);
pCell->SetDirty();
aFormulas.push_back(pCell);