Kaydet (Commit) 457c6ebf authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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
üst 74d6a598
...@@ -350,8 +350,7 @@ void ScColumn::CloneFormulaCell( const ScFormulaCell& rSrc, const std::vector<sc ...@@ -350,8 +350,7 @@ void ScColumn::CloneFormulaCell( const ScFormulaCell& rSrc, const std::vector<sc
if (nLen == 1) if (nLen == 1)
{ {
// Single, ungrouped formula cell. // Single, ungrouped formula cell.
ScFormulaCell* pCell = ScFormulaCell* pCell = new ScFormulaCell(rSrc, *pDocument, aPos);
new ScFormulaCell(rSrc, *pDocument, aPos, pDocument->GetGrammar());
pCell->StartListeningTo(aCxt); pCell->StartListeningTo(aCxt);
pCell->SetDirty(); pCell->SetDirty();
aFormulas.push_back(pCell); aFormulas.push_back(pCell);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment