From 346b75ea23fce8d4444462921f4f00e4bf6f8cbd Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Sun, 29 Nov 2009 22:38:26 +0000 Subject: [PATCH] Fix "simplekeyframe" with several parameters svn path=/trunk/kdenlive/; revision=4155 --- src/clipitem.cpp | 3 ++- src/keyframeedit.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clipitem.cpp b/src/clipitem.cpp index cab99a87..2fc109c8 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -1426,7 +1426,7 @@ EffectsParameterList ClipItem::getEffectArgs(const QDomElement effect) QDomElement e = params.item(i).toElement(); //kDebug() << "/ / / /SENDING EFFECT PARAM: " << e.attribute("type") << ", NAME_ " << e.attribute("tag"); if (e.attribute("type") == "simplekeyframe") { - kDebug() << "/ / / /SENDING KEYFR EFFECT TYPE"; + QStringList values = e.attribute("keyframes").split(";", QString::SkipEmptyParts); double factor = e.attribute("factor", "1").toDouble(); for (int j = 0; j < values.count(); j++) { @@ -1434,6 +1434,7 @@ EffectsParameterList ClipItem::getEffectArgs(const QDomElement effect) double val = values.at(j).section(":", 1, 1).toDouble() / factor; values[j] = pos + "=" + QString::number(val); } + //kDebug() << "/ / / /SENDING KEYFR:"<rowCount(); i++) { - keyframes.append(QString::number(m_timecode.getFrameCount(keyframe_list->verticalHeaderItem(i)->text())) + ':' + keyframe_list->item(i, 0)->text() + ';'); + keyframes.append(QString::number(m_timecode.getFrameCount(keyframe_list->verticalHeaderItem(i)->text())) + ':' + keyframe_list->item(i, column)->text() + ';'); } m_params[column].setAttribute("keyframes", keyframes); emit parameterChanged(); -- 2.39.2