From d3a24e566eccd7b20b893ede1b17e64e38b29be9 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 28 Sep 2012 21:01:14 +0200 Subject: vba procedures and macro names will result in crash, fdo#55174 Change-Id: I23073ecc56482670d185b39452a7d8b9d6eb38c8 --- sc/source/filter/oox/defnamesbuffer.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- cgit v1.2.3