summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/defnamesbuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/defnamesbuffer.cxx')
-rw-r--r--sc/source/filter/oox/defnamesbuffer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/filter/oox/defnamesbuffer.cxx b/sc/source/filter/oox/defnamesbuffer.cxx
index 2cf0c00d2476..8cdbcc4eefa0 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 )
{