[Libreoffice-commits] .: Branch 'distro/suse/suse-3.6' - sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Oct 30 04:32:21 PDT 2012


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

New commits:
commit f80277948fc36eddc46ab841aa9eb654bad8a183
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 2cf0c00..8cdbcc4 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