[Libreoffice-commits] .: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 28 12:03:28 PDT 2012


 sc/source/filter/oox/defnamesbuffer.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit d3a24e566eccd7b20b893ede1b17e64e38b29be9
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Sep 28 21:01:14 2012 +0200

    vba procedures and macro names will result in crash, fdo#55174
    
    Change-Id: I23073ecc56482670d185b39452a7d8b9d6eb38c8

diff --git a/sc/source/filter/oox/defnamesbuffer.cxx b/sc/source/filter/oox/defnamesbuffer.cxx
index 6a3a3aa..6a62f01 100644
--- a/sc/source/filter/oox/defnamesbuffer.cxx
+++ b/sc/source/filter/oox/defnamesbuffer.cxx
@@ -426,6 +426,10 @@ DefinedName::getTokens()
 
 void DefinedName::convertFormula()
 {
+    // macro function or vba procedure
+    if(!mpScRangeData)
+        return;
+
     // convert and set formula of the defined name
     if ( getFilterType() == FILTER_OOXML )
     {


More information about the Libreoffice-commits mailing list