]> git.sesse.net Git - kdenlive/blobdiff - src/clipitem.cpp
Fix resizing issue
[kdenlive] / src / clipitem.cpp
index f5fc70ade392402f442bc363fffefde53cfc20d6..e1f6331c7387bce9537c3b5816fcb1a1b450f258 100644 (file)
@@ -1086,10 +1086,9 @@ void ClipItem::resizeEnd(int posx, double /*speed*/)
     if (posx > max && maxDuration() != GenTime()) posx = max;
     if (posx == endPos().frames(m_fps)) return;
     //kDebug() << "// NEW POS: " << posx << ", OLD END: " << endPos().frames(m_fps);
-    const int previous = (int)(cropStart() + cropDuration()).frames(m_fps) - 1;
+    const int previous = cropDuration().frames(m_fps);
     AbstractClipItem::resizeEnd(posx, m_speed);
-    const int current = (int)(cropStart() + cropDuration()).frames(m_fps) - 1;
-    if (current != previous) {
+    if ((int) cropDuration().frames(m_fps) != previous) {
         if (m_hasThumbs && KdenliveSettings::videothumbnails()) {
             /*connect(m_clip->thumbProducer(), SIGNAL(thumbReady(int, QPixmap)), this, SLOT(slotThumbReady(int, QPixmap)));*/
             m_endThumbTimer.start(150);