From d116e09d72dc016e93d9cc21cbaf18f97e4cbc52 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Wed, 4 Jun 2014 12:48:36 -0400 Subject: 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) --- sc/source/core/data/column4.cxx | 3 +-- 1 file changed, 1 insertion(+), 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::vectorGetGrammar()); + ScFormulaCell* pCell = new ScFormulaCell(rSrc, *pDocument, aPos); pCell->StartListeningTo(aCxt); pCell->SetDirty(); aFormulas.push_back(pCell); -- cgit