summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/animationimport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/animationimport.cxx')
-rw-r--r--xmloff/source/draw/animationimport.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx
index 13e67c357b80..2b350ef379f0 100644
--- a/xmloff/source/draw/animationimport.cxx
+++ b/xmloff/source/draw/animationimport.cxx
@@ -101,6 +101,15 @@ OUString SAL_CALL AnimationsImport_getImplementationName() throw()
return OUString( "xmloff::AnimationsImport" );
}
+static ::rtl::OUString
+lcl_GetMediaReference(SvXMLImport const& rImport, ::rtl::OUString const& rURL)
+{
+ if (rImport.IsPackageURL(rURL))
+ return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("vnd.sun.star.Package:")) + rURL;
+
+ return rImport.GetAbsoluteReference(rURL);
+}
+
namespace xmloff
{
@@ -860,7 +869,7 @@ void AnimationNodeContext::init_node( const css::uno::Reference< css::xml::sax:
if( nNodeType == AnimationNodeType::AUDIO )
{
Reference< XAudio > xAudio( mxNode, UNO_QUERY_THROW );
- xAudio->setSource( makeAny( GetImport().GetAbsoluteReference( rValue ) ) );
+ xAudio->setSource( makeAny(lcl_GetMediaReference(GetImport(), rValue)) );
break;
}
SAL_FALLTHROUGH;