diff options
author | Daniel Rentz <dr@openoffice.org> | 2010-07-09 19:36:57 +0200 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2010-07-09 19:36:57 +0200 |
commit | d51b5501b66fd73252a4788ba0e2e215156c5488 (patch) | |
tree | 456b73a1d56c61709798f31ea1c14c355fd6e51c /sc | |
parent | 59665af0c094f4b0ecbf63f0ba532fa2fccbb2f0 (diff) |
mib17: restrict export of codenames to ODF to VBA enabled documents
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 2 |
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() ) |