]> git.sesse.net Git - kdenlive/commitdiff
Fix possible timeline corruption (transition not found because of animation when...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 27 Jul 2010 09:09:37 +0000 (09:09 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 27 Jul 2010 09:09:37 +0000 (09:09 +0000)
svn path=/trunk/kdenlive/; revision=4656

src/transition.cpp

index f3af57beedc0f0c49fd68f917d084e6657f2f754..0d22a8ccef20013d701cea437677bf45cd591d6c 100644 (file)
@@ -45,7 +45,7 @@ Transition::Transition(const ItemInfo info, int transitiontrack, double fps, QDo
 #if QT_VERSION >= 0x040600
     m_startAnimation = new QPropertyAnimation(this, "rect");
     m_startAnimation->setDuration(200);
-    QRectF r(0, 0, m_info.cropDuration.frames(fps) - 0.02, 1);
+    QRectF r(0, 0, m_info.cropDuration.frames(fps) - 0.02, (qreal)(KdenliveSettings::trackheight() / 3 + 5));
     QRectF r2(0, 0, m_info.cropDuration.frames(fps) - 0.02, (qreal)(KdenliveSettings::trackheight() / 3 * 2 - 1));
     m_startAnimation->setStartValue(r);
     m_startAnimation->setEndValue(r2);