sc/source/core/data/cell.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 202019a7671ff9f4f1431513cd606a6bf1bcddef Author: Kohei Yoshida <kohei.yosh...@suse.com> Date: Mon Feb 13 12:26:50 2012 -0500
fdo#45916: Ensure formula cell's pCode isn't NULL even when compilation fails. Signed-off-by: Ivan Timofeev <timofeev....@gmail.com> diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx index 155f4bd..8ddc540 100644 --- a/sc/source/core/data/cell.cxx +++ b/sc/source/core/data/cell.cxx @@ -782,6 +782,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 _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits