|
|
@ -2012,11 +2012,7 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::videoItemToLinkedVideo(UBGraphicsMed |
|
|
|
mXmlWriter.writeAttribute(UBSettings::uniboardDocumentNamespaceUri, "position", QString("%1").arg(pos)); |
|
|
|
mXmlWriter.writeAttribute(UBSettings::uniboardDocumentNamespaceUri, "position", QString("%1").arg(pos)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString videoFileHref = videoItem->mediaFileUrl().toString(); |
|
|
|
QString videoFileHref = "videos/" + videoItem->mediaFileUrl().fileName(); |
|
|
|
|
|
|
|
|
|
|
|
videoFileHref = UBFileSystemUtils::removeLocalFilePrefix(videoFileHref); |
|
|
|
|
|
|
|
if(videoFileHref.startsWith(mDocumentPath)) |
|
|
|
|
|
|
|
videoFileHref = videoFileHref.replace(mDocumentPath + "/",""); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mXmlWriter.writeAttribute(nsXLink, "href", videoFileHref); |
|
|
|
mXmlWriter.writeAttribute(nsXLink, "href", videoFileHref); |
|
|
|
mXmlWriter.writeEndElement(); |
|
|
|
mXmlWriter.writeEndElement(); |
|
|
|