diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-04-04 13:17:34 +0200 |
---|---|---|
committer | root <root@linux-3qg3.site> | 2014-04-04 19:06:12 +0200 |
commit | d14f701bba44a278582a6c299a7339f876e84fd4 (patch) | |
tree | 3444c2c27eb47081e7ea8237e79298786fe9101c /xmloff | |
parent | 7ae4476b93b23456cef306c726db54ae3150af47 (diff) |
glTF ODF export: use mimetype to decide about file type
Change-Id: Ib1837bdc7468fb19f55a38f6875e026eea8d3b24
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 13d1f77b6e09..655f1638853c 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -3227,7 +3227,7 @@ void XMLShapeExport::ImpExportMediaShape( OUString const persistentURL = lcl_StoreMediaAndGetURL(GetExport(), xPropSet, aMediaURL, sMimeType); - if( aMediaURL.endsWith(".json") ) + if( sMimeType == "application/vnd.gltf+json" ) lcl_StoreJsonExternals(GetExport(), aMediaURL); mrExport.AddAttribute ( XML_NAMESPACE_XLINK, XML_HREF, persistentURL ); |