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

New commits:
commit f80277948fc36eddc46ab841aa9eb654bad8a183
Author: Markus Mohrhard <markus.mohrh...@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 )
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to