summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2010-07-09 19:36:57 +0200
committerDaniel Rentz <dr@openoffice.org>2010-07-09 19:36:57 +0200
commitd51b5501b66fd73252a4788ba0e2e215156c5488 (patch)
tree456b73a1d56c61709798f31ea1c14c355fd6e51c /sc/source/filter/xml
parent59665af0c094f4b0ecbf63f0ba532fa2fccbb2f0 (diff)
mib17: restrict export of codenames to ODF to VBA enabled documents
Diffstat (limited to 'sc/source/filter/xml')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index f7822c753308..f5a4b3648ebb 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -4301,7 +4301,7 @@ void ScXMLExport::GetConfigurationSettings(uno::Sequence<beans::PropertyValue>&
uno::Reference <container::XNameAccess> xCodeNameAccess;
DBG_ASSERT( pDoc, "ScXMLExport::GetConfigurationSettings - no ScDocument!" );
- if( pDoc )
+ if( pDoc && pDoc->IsInVBAMode() )
{
xCodeNameAccess = new XMLCodeNameProvider( pDoc );
if( xCodeNameAccess.is() && xCodeNameAccess->hasElements() )