Commit e70837e3 authored by Till Theato's avatar Till Theato
Browse files

Fix available duration in Keyframeedit widget when clip is cropped from start

svn path=/trunk/kdenlive/; revision=5552
parent aa89fec1
...@@ -363,14 +363,14 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in ...@@ -363,14 +363,14 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in
KeyframeEdit *geo; KeyframeEdit *geo;
if (pa.attribute("widget") == "corners") { if (pa.attribute("widget") == "corners") {
// we want a corners-keyframe-widget // we want a corners-keyframe-widget
CornersWidget *corners = new CornersWidget(m_monitor, pa, m_in, m_in + m_out, m_timecode, e.attribute("active_keyframe", "-1").toInt(), this); CornersWidget *corners = new CornersWidget(m_monitor, pa, m_in, m_out, m_timecode, e.attribute("active_keyframe", "-1").toInt(), this);
corners->slotShowScene(!disable); corners->slotShowScene(!disable);
connect(corners, SIGNAL(checkMonitorPosition(int)), this, SIGNAL(checkMonitorPosition(int))); connect(corners, SIGNAL(checkMonitorPosition(int)), this, SIGNAL(checkMonitorPosition(int)));
connect(this, SIGNAL(effectStateChanged(bool)), corners, SLOT(slotShowScene(bool))); connect(this, SIGNAL(effectStateChanged(bool)), corners, SLOT(slotShowScene(bool)));
connect(this, SIGNAL(syncEffectsPos(int)), corners, SLOT(slotSyncPosition(int))); connect(this, SIGNAL(syncEffectsPos(int)), corners, SLOT(slotSyncPosition(int)));
geo = static_cast<KeyframeEdit *>(corners); geo = static_cast<KeyframeEdit *>(corners);
} else { } else {
geo = new KeyframeEdit(pa, m_in, m_in + m_out, m_timecode, e.attribute("active_keyframe", "-1").toInt()); geo = new KeyframeEdit(pa, m_in, m_out, m_timecode, e.attribute("active_keyframe", "-1").toInt());
} }
m_vbox->addWidget(geo); m_vbox->addWidget(geo);
m_valueItems[paramName+"keyframe"] = geo; m_valueItems[paramName+"keyframe"] = geo;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment