svn path=/branches/KDE4/; revision=2621
if (effect.attribute("tag") == "volume") {
// A fade effect was modified, update the clip
if (effect.attribute("id") == "fadein") {
- int pos = effectParams.value("out").toInt();
+ int pos = effectParams.value("out").toInt() - effectParams.value("in").toInt();
clip->setFadeIn(pos);
}
if (effect.attribute("id") == "fadeout") {
- int pos = clip->cropDuration().frames(m_document->fps()) - effectParams.value("in").toInt();
+ int pos = effectParams.value("out").toInt() - effectParams.value("in").toInt();
clip->setFadeOut(pos);
}