fdo#45916: Ensure formula cell's pCode isn't NULL even when compilation fails.

This commit is contained in:
Kohei Yoshida 2012-02-13 12:26:50 -05:00 committed by Ivan Timofeev
parent d7baacd81b
commit ee38b167c8

View file

@ -777,6 +777,9 @@ ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rPos,
aPos( rPos )
{
Compile( rFormula, true, eGrammar ); // bNoListening, Insert does that
if (!pCode)
// We need to have a non-NULL token array instance at all times.
pCode = new ScTokenArray;
}
// Wird von den Importfiltern verwendet