]> git.sesse.net Git - kdenlive/commitdiff
Fix wrong duration displayed on clip load
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 23 Dec 2012 17:30:40 +0000 (18:30 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 23 Dec 2012 17:30:40 +0000 (18:30 +0100)
src/docclipbase.cpp

index a96f7f28bfe1a29844bbdfaed7d805624ff7c8ae..3b0cdf52b291d7cef6146141e49ce5bb50cd8650 100644 (file)
@@ -90,7 +90,7 @@ DocClipBase::DocClipBase(ClipManager *clipManager, QDomElement xml, const QStrin
     } else {
         int out = xml.attribute("out").toInt();
         int in = xml.attribute("in").toInt();
-        setDuration(GenTime(out - in + 1, KdenliveSettings::project_fps()));
+       if (out > in) setDuration(GenTime(out - in + 1, KdenliveSettings::project_fps()));
     }
 
     if (!m_properties.contains("name")) m_properties.insert("name", url.fileName());