]> git.sesse.net Git - kdenlive/blobdiff - src/effectstack/effectstackview2.cpp
Make sure we don't load producers twice (fix recent regression)
[kdenlive] / src / effectstack / effectstackview2.cpp
index d67f2bbc337e987eb8e1031c384577ff639d9186..5b7610d4e40ec0eb65b83996fa3b05de37ec6dec 100644 (file)
@@ -96,8 +96,7 @@ void EffectStackView2::slotRenderPos(int pos)
 void EffectStackView2::slotClipItemUpdate()
 {
     int inPoint = m_clipref->cropStart().frames(KdenliveSettings::project_fps());
-    int outPoint = m_clipref->cropDuration().frames(KdenliveSettings::project_fps()) - inPoint;
-    CollapsibleEffect *effectToMove = NULL;
+    int outPoint = m_clipref->cropDuration().frames(KdenliveSettings::project_fps()) + inPoint;
     for (int i = 0; i < m_effects.count(); i++) {
         m_effects.at(i)->setRange(inPoint, outPoint);
     }
@@ -107,7 +106,6 @@ void EffectStackView2::slotClipItemSelected(ClipItem* c)
 {
     if (c && !c->isEnabled()) return;
     if (c && c == m_clipref) {
-
     } else {
        if (m_clipref) disconnect(m_clipref, SIGNAL(updateRange()), this, SLOT(slotClipItemUpdate()));
         m_clipref = c;