Commit de55a57e authored by Julius Künzel's avatar Julius Künzel
Browse files

Fix replacement of missing images in title clips

Fixes #971
BUG: 411324
parent ea3031cd
......@@ -219,7 +219,7 @@ bool DocumentChecker::hasErrorInClips()
QString xml = Xml::getXmlProperty(e, QStringLiteral("xmldata"));
QStringList images = TitleWidget::extractImageList(xml);
QStringList fonts = TitleWidget::extractFontList(xml);
checkMissingImagesAndFonts(images, fonts, e.attribute(QStringLiteral("id")), e.attribute(QStringLiteral("name")));
checkMissingImagesAndFonts(images, fonts, Xml::getXmlProperty(e, QStringLiteral("kdenlive:id")), e.attribute(QStringLiteral("name")));
continue;
}
QString resource = Xml::getXmlProperty(e, QStringLiteral("resource"));
......@@ -1536,6 +1536,9 @@ void DocumentChecker::checkMissingImagesAndFonts(const QStringList &images, cons
e.setAttribute(QStringLiteral("resource"), img);
e.setAttribute(QStringLiteral("id"), id);
e.setAttribute(QStringLiteral("name"), baseClip);
QMap<QString, QString> properties;
properties.insert("kdenlive:id", id);
Xml::addXmlProperties(e, properties);
m_missingClips.append(e);
} else {
m_safeImages.append(img);
......
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