fdo#77300: Don't re-compile formulas when the hybrid formula is not there.
Change-Id: I9b0f8d031fec08bb8d92333ff67074fdc739e034
This commit is contained in:
@@ -661,16 +661,19 @@ public:
|
|||||||
ScFormulaCell* pCell = rEntry.mpCell;
|
ScFormulaCell* pCell = rEntry.mpCell;
|
||||||
OUString aFormula = pCell->GetHybridFormula();
|
OUString aFormula = pCell->GetHybridFormula();
|
||||||
|
|
||||||
// Create token array from formula string.
|
if (!aFormula.isEmpty())
|
||||||
ScCompiler aComp(mrCompileFormulaCxt, pCell->aPos);
|
{
|
||||||
ScTokenArray* pNewCode = aComp.CompileString(aFormula);
|
// Create token array from formula string.
|
||||||
|
ScCompiler aComp(mrCompileFormulaCxt, pCell->aPos);
|
||||||
|
ScTokenArray* pNewCode = aComp.CompileString(aFormula);
|
||||||
|
|
||||||
// Generate RPN tokens.
|
// Generate RPN tokens.
|
||||||
ScCompiler aComp2(mpDoc, pCell->aPos, *pNewCode);
|
ScCompiler aComp2(mpDoc, pCell->aPos, *pNewCode);
|
||||||
aComp2.CompileTokenArray();
|
aComp2.CompileTokenArray();
|
||||||
|
|
||||||
pCell->SetCode(pNewCode);
|
pCell->SetCode(pNewCode);
|
||||||
pCell->SetDirty();
|
pCell->SetDirty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user