From: Jean-Baptiste Mardelle Date: Wed, 1 Sep 2010 22:46:39 +0000 (+0000) Subject: Fix wrong max length for fade effects X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=06e687552375cdded9eb6b20896e91e14a5e626f;p=kdenlive Fix wrong max length for fade effects svn path=/trunk/kdenlive/; revision=4806 --- diff --git a/src/effectstackedit.cpp b/src/effectstackedit.cpp index 4e11b0e8..e9ec1398 100644 --- a/src/effectstackedit.cpp +++ b/src/effectstackedit.cpp @@ -314,7 +314,7 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, int pos, int in, in // fadeout position starts from clip end pos = m_out - (pos - m_in); } - PositionEdit *posedit = new PositionEdit(paramName, pos, 1, m_out, m_timecode); + PositionEdit *posedit = new PositionEdit(paramName, pos, 1, m_out - m_in, m_timecode); m_vbox->addWidget(posedit); m_valueItems[paramName+"position"] = posedit; connect(posedit, SIGNAL(parameterChanged()), this, SLOT(collectAllParameters()));