[Libreoffice-commits] .: sc/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Mon Feb 13 10:34:13 PST 2012


 sc/source/core/data/cell.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ee38b167c86c8f96aa41dca861cae327c6df5915
Author: Kohei Yoshida <kohei.yoshida at 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.

diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 2f3df26..b74f08e 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -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


More information about the Libreoffice-commits mailing list