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
This commit is contained in:
Kohei Yoshida
2014-06-04 12:48:36 -04:00
parent 74d6a5985f
commit 457c6ebfef

View File

@@ -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);