]> git.sesse.net Git - kdenlive/commitdiff
Fix bug in fade resizing
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 4 Nov 2008 01:05:37 +0000 (01:05 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 4 Nov 2008 01:05:37 +0000 (01:05 +0000)
svn path=/branches/KDE4/; revision=2621

src/customtrackview.cpp

index 78aa87738268200d39cfe9940206f3a7e5569bf5..dd68dde8a10194ea239b98093e2f35bba3fa3ad8 100644 (file)
@@ -906,11 +906,11 @@ void CustomTrackView::updateEffect(int track, GenTime pos, QDomElement effect, i
         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);
             }