]> git.sesse.net Git - kdenlive/commitdiff
fix simplekeyframe issue
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 29 Nov 2009 22:29:20 +0000 (22:29 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 29 Nov 2009 22:29:20 +0000 (22:29 +0000)
svn path=/trunk/kdenlive/; revision=4154

src/clipitem.cpp

index 99a9a1c5b148902043b6eefeaaf76f9c3dfcd00b..cab99a870a785f843ba26d46864472f3b87a0cb6 100644 (file)
@@ -1429,12 +1429,10 @@ EffectsParameterList ClipItem::getEffectArgs(const QDomElement effect)
             kDebug() << "/ / / /SENDING KEYFR EFFECT TYPE";
             QStringList values = e.attribute("keyframes").split(";", QString::SkipEmptyParts);
             double factor = e.attribute("factor", "1").toDouble();
-            if (factor != 1) {
-                for (int j = 0; j < values.count(); j++) {
-                    QString pos = values.at(j).section(":", 0, 0);
-                    double val = values.at(j).section(":", 1, 1).toDouble() / factor;
-                    values[j] = pos + "=" + QString::number(val);
-                }
+            for (int j = 0; j < values.count(); j++) {
+               QString pos = values.at(j).section(":", 0, 0);
+                double val = values.at(j).section(":", 1, 1).toDouble() / factor;
+                values[j] = pos + "=" + QString::number(val);
             }
             parameters.addParam(e.attribute("name"), values.join(";"));
             /*parameters.addParam(e.attribute("name"), e.attribute("keyframes").replace(":", "="));