From 8ab3471f081af31eb9338216797268df9b0b37c1 Mon Sep 17 00:00:00 2001 From: Alberto Villa Date: Tue, 16 Jun 2009 10:46:46 +0000 Subject: [PATCH] convert font-size to font-pixel-size in old documents (cleanup and complete): http://www.kdenlive.org/mantis/view.php?id=749 svn path=/trunk/kdenlive/; revision=3551 --- src/documentvalidator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/documentvalidator.cpp b/src/documentvalidator.cpp index 5391f7ec..62c46352 100644 --- a/src/documentvalidator.cpp +++ b/src/documentvalidator.cpp @@ -692,10 +692,11 @@ bool DocumentValidator::upgrade(double version, const double currentVersion) content.setAttribute("font-pixel-size", QFontInfo(font).pixelSize()); content.removeAttribute("font-size"); kproducer.setAttribute("xmldata", data.toString()); - QString resource = kproducer.attribute("resource"); - if (QFile::exists(resource)) { - // TODO: delete the preview file - } + /* + * You may be tempted to delete the preview file + * to force its recreation: bad idea (see + * http://www.kdenlive.org/mantis/view.php?id=749) + */ } } } -- 2.39.2