]> git.sesse.net Git - kdenlive/blobdiff - src/clipitem.cpp
Don't double check max length when resizing clip end
[kdenlive] / src / clipitem.cpp
index db222a1df2077fcb6548a5a222320f7209bcf9e4..4f93bef4df350ab6d516d3c57aee295632676641 100644 (file)
@@ -1105,7 +1105,7 @@ void ClipItem::resizeStart(int posx, double /*speed*/)
 
 void ClipItem::resizeEnd(int posx, double /*speed*/, bool updateKeyFrames)
 {
-    const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps) + 1;
+    const int max = (startPos() - cropStart() + maxDuration()).frames(m_fps);
     if (posx > max) posx = max;
     if (posx == endPos().frames(m_fps)) return;
     //kDebug() << "// NEW POS: " << posx << ", OLD END: " << endPos().frames(m_fps);