summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-28 21:01:14 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-09-28 21:02:47 +0200
commitd3a24e566eccd7b20b893ede1b17e64e38b29be9 (patch)
treef0399ad38e33ec459c54b52a2e2ced2c4506aa36 /sc
parent8e94ac21b72145d59992eaee4fbbd065e597b3d6 (diff)
vba procedures and macro names will result in crash, fdo#55174
Change-Id: I23073ecc56482670d185b39452a7d8b9d6eb38c8
Diffstat (limited to 'sc')
-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 6a3a3aaefa1c..6a62f019917a 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 )
{