diff options
author | jan Iversen <jani@libreoffice.org> | 2017-10-09 19:09:11 +0200 |
---|---|---|
committer | jan Iversen <jani@libreoffice.org> | 2017-10-09 19:13:54 +0200 |
commit | 9f89fce1fb913339e8f9c24feef1742195c7fa40 (patch) | |
tree | dea919af5fa551783c6aec332eafe9070d40004c /oox | |
parent | d495eccd3be8891eab587514020cc84ebffa543f (diff) |
oox, implement HAVE_FEATURE_AVMEDIA
iOS does not support avmedia, therefore HAVE_FEATURE_AVMEDIA
is set, however not all sources test for it.
Change-Id: Ia58fb8d7ab524b9763fd9fa3a7d3fa111cb85bb4
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 312da7938d05..64e916e1033f 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <config_folders.h> #include "rtl/bootstrap.hxx" #include "oox/core/xmlfilterbase.hxx" @@ -968,7 +970,11 @@ void DrawingML::WriteMediaNonVisualProperties(const css::uno::Reference<css::dra bool bEmbed = rURL.startsWith("vnd.sun.star.Package:"); // mime type +#if HAVE_FEATURE_AVMEDIA OUString aMimeType(pMediaObj->getMediaProperties().getMimeType()); +#else + OUString aMimeType("none"); +#endif if (aMimeType == "application/vnd.sun.star.media") { // try to set something better |