]> git.sesse.net Git - kdenlive/commitdiff
convert font-size to font-pixel-size in old documents (cleanup and complete):
authorAlberto Villa <avilla@FreeBSD.org>
Tue, 16 Jun 2009 10:46:46 +0000 (10:46 +0000)
committerAlberto Villa <avilla@FreeBSD.org>
Tue, 16 Jun 2009 10:46:46 +0000 (10:46 +0000)
http://www.kdenlive.org/mantis/view.php?id=749

svn path=/trunk/kdenlive/; revision=3551

src/documentvalidator.cpp

index 5391f7ecf75aa656a8d9ae43ed45e6f78e0d95f9..62c46352ff8d57b3a228474637bfa70b17ca48d6 100644 (file)
@@ -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)
+                                 */
                             }
                         }
                     }