]> git.sesse.net Git - kdenlive/commitdiff
Fix pan and zoom update after clip resize
authorTill Theato <root@ttill.de>
Wed, 6 Apr 2011 16:26:31 +0000 (16:26 +0000)
committerTill Theato <root@ttill.de>
Wed, 6 Apr 2011 16:26:31 +0000 (16:26 +0000)
svn path=/trunk/kdenlive/; revision=5538

src/customtrackview.cpp

index a177cd71dc50670dc5f4b2b5f0ab3820364852a1..5fc2cea0727e2e92fe51bdc09c2fc42375b3eb26 100644 (file)
@@ -6665,9 +6665,9 @@ void CustomTrackView::adjustEffects(ClipItem* item, ItemInfo oldInfo, bool fromS
 {
     QMap<int, QDomElement> effects;
     if (fromStart)
-        effects = item->adjustEffectsToDuration(0, 0, oldInfo.cropStart.frames(m_document->fps()), item->cropStart().frames(m_document->fps()), true);
+        effects = item->adjustEffectsToDuration(m_document->width(), m_document->height(), oldInfo.cropStart.frames(m_document->fps()), item->cropStart().frames(m_document->fps()), true);
     else
-        effects = item->adjustEffectsToDuration(0, 0, (oldInfo.cropStart +  oldInfo.cropDuration).frames(m_document->fps()) - 1,
+        effects = item->adjustEffectsToDuration(m_document->width(), m_document->height(), (oldInfo.cropStart +  oldInfo.cropDuration).frames(m_document->fps()) - 1,
                                                 (item->cropStart() + item->cropDuration()).frames(m_document->fps()) - 1, false);
 
     if (effects.count()) {