From 82e5f92ca611f19c83ab7e07fc9aad4201d2384a Mon Sep 17 00:00:00 2001 From: Craig Watson Date: Thu, 10 Dec 2015 13:00:27 +0100 Subject: [PATCH] Fixed bad video URL encoding in .svg --- src/adaptors/UBSvgSubsetAdaptor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/adaptors/UBSvgSubsetAdaptor.cpp b/src/adaptors/UBSvgSubsetAdaptor.cpp index bfd1a0b0..840747fa 100644 --- a/src/adaptors/UBSvgSubsetAdaptor.cpp +++ b/src/adaptors/UBSvgSubsetAdaptor.cpp @@ -2012,11 +2012,7 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::videoItemToLinkedVideo(UBGraphicsMed mXmlWriter.writeAttribute(UBSettings::uniboardDocumentNamespaceUri, "position", QString("%1").arg(pos)); } - QString videoFileHref = videoItem->mediaFileUrl().toString(); - - videoFileHref = UBFileSystemUtils::removeLocalFilePrefix(videoFileHref); - if(videoFileHref.startsWith(mDocumentPath)) - videoFileHref = videoFileHref.replace(mDocumentPath + "/",""); + QString videoFileHref = "videos/" + videoItem->mediaFileUrl().fileName(); mXmlWriter.writeAttribute(nsXLink, "href", videoFileHref); mXmlWriter.writeEndElement();