From b095dbf41775fe9af805e71657a793bc26be702f Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 29 Nov 2009 22:29:20 +0000 Subject: [PATCH] fix simplekeyframe issue svn path=/trunk/kdenlive/; revision=4154 --- src/clipitem.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/clipitem.cpp b/src/clipitem.cpp index 99a9a1c5..cab99a87 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -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(":", "=")); -- 2.39.2