svn path=/trunk/kdenlive/; revision=3602
// No conversion needed
if (version == currentVersion) {
// No conversion needed
if (version == currentVersion) {
- if (!m_doc.toString().contains("font-size")) // TODO: remove when currentVersion == 0.84
- return true;
+ // TODO: uncomment when currentVersion == 0.84
+ //return true;
}
// The document is too new
}
// The document is too new
if (version <= 0.83) {
// Replace point size with pixel size in text titles
if (version <= 0.83) {
// Replace point size with pixel size in text titles
- KMessageBox::ButtonCode convert;
if (m_doc.toString().contains("font-size")) {
if (m_doc.toString().contains("font-size")) {
+ KMessageBox::ButtonCode convert;
QDomNodeList kproducerNodes = m_doc.elementsByTagName("kdenlive_producer");
for (int i = 0; i < kproducerNodes.count() && convert != KMessageBox::No; ++i) {
QDomElement kproducer = kproducerNodes.at(i).toElement();
QDomNodeList kproducerNodes = m_doc.elementsByTagName("kdenlive_producer");
for (int i = 0; i < kproducerNodes.count() && convert != KMessageBox::No; ++i) {
QDomElement kproducer = kproducerNodes.at(i).toElement();
+
+ // Fill the <documentproperties /> element
+ QDomElement docProperties = infoXml.firstChildElement("documentproperties");
+ if (docProperties.isNull()) {
+ docProperties = m_doc.createElement("documentproperties");
+ docProperties.setAttribute("zonein", infoXml.attribute("zonein"));
+ docProperties.setAttribute("zoneout", infoXml.attribute("zoneout"));
+ docProperties.setAttribute("zoom", infoXml.attribute("zoom"));
+ infoXml.appendChild(docProperties);
+ }
}
// The document has been converted: mark it as modified
}
// The document has been converted: mark it as modified