diff options
Diffstat (limited to 'filter/source/storagefilterdetect/filterdetect.cxx')
-rw-r--r-- | filter/source/storagefilterdetect/filterdetect.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/source/storagefilterdetect/filterdetect.cxx b/filter/source/storagefilterdetect/filterdetect.cxx index 02ed875c6699..694251c389b3 100644 --- a/filter/source/storagefilterdetect/filterdetect.cxx +++ b/filter/source/storagefilterdetect/filterdetect.cxx @@ -33,6 +33,8 @@ #include <com/sun/star/packages/zip/ZipIOException.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> +#include <comphelper/lok.hxx> + using namespace ::com::sun::star; using utl::MediaDescriptor; @@ -103,6 +105,11 @@ OUString SAL_CALL StorageFilterDetect::detect(uno::Sequence<beans::PropertyValue OUString aMediaType; xStorageProperties->getPropertyValue( "MediaType" ) >>= aMediaType; aTypeName = getInternalFromMediaType( aMediaType ); + if (comphelper::LibreOfficeKit::isActive() && aTypeName == "draw8_template") + { + // save it as draw8 instead of template format + aTypeName = "draw8"; + } } catch( const lang::WrappedTargetException& aWrap ) |