summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-06-16 13:55:40 +0200
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-06-16 13:55:40 +0200
commit04b7b2c72fbfa57180cac680b07618fc40fe0da6 (patch)
tree5034f52f7a3d9c173395e92c09f9e7ac09abb027 /xmloff
parent4d8c4e7fe3e9b0ec6e14b5475a29d119e2023065 (diff)
Fix gltf export: close plugin element before export fallback
Change-Id: I2e1f27e535ee45259f7bdf783ea5224b2ad559ef
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 68965edfdbfc..fff8f4a07825 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -3332,7 +3332,7 @@ void XMLShapeExport::ImpExportMediaShape(
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_MIME_TYPE, sMimeType );
// write plugin
- SvXMLElementExport aOBJ(mrExport, XML_NAMESPACE_DRAW, XML_PLUGIN, !( nFeatures & SEF_EXPORT_NO_WS ), true);
+ SvXMLElementExport* pPluginOBJ = new SvXMLElementExport(mrExport, XML_NAMESPACE_DRAW, XML_PLUGIN, !( nFeatures & SEF_EXPORT_NO_WS ), true);
// export parameters
const OUString aFalseStr( "false" ), aTrueStr( "true" );
@@ -3384,6 +3384,7 @@ void XMLShapeExport::ImpExportMediaShape(
delete( new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, false, true ) );
}
+ delete pPluginOBJ;
#if HAVE_FEATURE_GLTF
if( sMimeType == "model/vnd.gltf+json" )
lcl_StoreGltfFallback(GetExport(), xPropSet, aMediaURL);