]> git.sesse.net Git - kdenlive/blobdiff - src/effectstackedit.cpp
Fix last keyframe for composite transition (and other geometry effects) inserted...
[kdenlive] / src / effectstackedit.cpp
index 10fd9e22e44b4f52f39c8e54a5bbcd90470cb65e..3d4a481f81791c64b5c73849b51168b5d46a0774 100644 (file)
@@ -233,8 +233,10 @@ void EffectStackEdit::transferParamDesc(const QDomElement d, ItemInfo info, bool
     }
 #endif
     QDomElement e = m_params.toElement();
-    const int minFrame = e.attribute("start").toInt();
-    const int maxFrame = e.attribute("end").toInt();
+    int minFrame = e.attribute("start").toInt();
+    int maxFrame = e.attribute("end").toInt();
+    // In transitions, maxFrame is in fact one frame after the end of transition
+    if (maxFrame > 0) maxFrame --;
 
     bool disable = d.attribute("disable") == "1" && KdenliveSettings::disable_effect_parameters();
     setEnabled(!disable);