summaryrefslogtreecommitdiff
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:41 -0400
commitd116e09d72dc016e93d9cc21cbaf18f97e4cbc52 (patch)
tree08380fce451f80afa9fc15cdaded18781b003cf3
parentcaf11476675d266cad6f2cbafab1460f5e814889 (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 (cherry picked from commit 457c6ebfef707d9187b9e8903886d79a80d24938)
-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);