Commit 9f2e033d authored by Claudio Valerio's avatar Claudio Valerio

Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40

parents c512df09 ab4c4d57
......@@ -1806,6 +1806,10 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::audioItemToLinkedAudio(UBGraphicsAud
}
QString audioFileHref = audioItem->mediaFileUrl().toString();
//on windows
if(audioFileHref.startsWith("file:///"))
audioFileHref = audioFileHref.replace("file:///" + mDocumentPath + "/","");
//mac and linux
if(audioFileHref.startsWith("file://"))
audioFileHref = audioFileHref.replace("file://" + mDocumentPath + "/","");
mXmlWriter.writeAttribute(nsXLink, "href", audioFileHref);
......@@ -1833,6 +1837,10 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::videoItemToLinkedVideo(UBGraphicsVid
}
QString videoFileHref = videoItem->mediaFileUrl().toString();
//on windows
if(videoFileHref.startsWith("file:///"))
videoFileHref = videoFileHref.replace("file:///" + mDocumentPath + "/","");
//on mac and linux
if(videoFileHref.startsWith("file://"))
videoFileHref = videoFileHref.replace("file://" + mDocumentPath + "/","");
mXmlWriter.writeAttribute(nsXLink, "href", videoFileHref);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment