summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-04-04 13:17:34 +0200
committerroot <root@linux-3qg3.site>2014-04-04 19:06:12 +0200
commitd14f701bba44a278582a6c299a7339f876e84fd4 (patch)
tree3444c2c27eb47081e7ea8237e79298786fe9101c /xmloff/source
parent7ae4476b93b23456cef306c726db54ae3150af47 (diff)
glTF ODF export: use mimetype to decide about file type
Change-Id: Ib1837bdc7468fb19f55a38f6875e026eea8d3b24
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/draw/shapeexport.cxx2
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 );