]> git.sesse.net Git - kdenlive/commitdiff
Fix end thumbnail for image and text clips
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 1 Oct 2009 12:56:27 +0000 (12:56 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 1 Oct 2009 12:56:27 +0000 (12:56 +0000)
svn path=/trunk/kdenlive/; revision=3972

src/clipitem.cpp

index 401c23ae7082337e0a7191abefc7f88ea9c59067..1e3dd89382a4d1d4432a05f68c2e36652519ddce 100644 (file)
@@ -540,10 +540,13 @@ void ClipItem::slotThumbReady(int frame, QPixmap pix)
         m_startPix = pix;
         m_startThumbRequested = false;
         update(r.left(), r.top(), width, pix.height());
+        if (m_clipType == IMAGE || m_clipType == TEXT) {
+            update(r.right() - width, r.top(), width, pix.height());
+        }
     } else if (m_endThumbRequested && frame == (cropStart() + cropDuration()).frames(m_fps) - 1) {
         m_endPix = pix;
         m_endThumbRequested = false;
-        update(r.right() - width, r.y(), width, pix.height());
+        update(r.right() - width, r.top(), width, pix.height());
     }
 }