Skip to content

Commit

Permalink
mib17: restrict export of codenames to ODF to VBA enabled documents
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Rentz committed Jul 9, 2010
1 parent 59665af commit d51b550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sc/source/filter/xml/xmlexprt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down

0 comments on commit d51b550

Please sign in to comment.