]> git.sesse.net Git - kdenlive/commitdiff
Fix on-monitor controls in corners effect shifted when clip is cropped from start
authorTill Theato <root@ttill.de>
Sat, 23 Apr 2011 22:12:27 +0000 (22:12 +0000)
committerTill Theato <root@ttill.de>
Sat, 23 Apr 2011 22:12:27 +0000 (22:12 +0000)
svn path=/trunk/kdenlive/; revision=5553

src/cornerswidget.cpp

index 1987b7ca861e72558109922ecda0c0e6ed236396..6582c5b0e80168b72f6af06626e3a68c64a1392e 100644 (file)
@@ -197,8 +197,8 @@ void CornersWidget::slotSyncPosition(int relTimelinePos)
 {
     if (keyframe_list->rowCount()) {
         relTimelinePos = qBound(0, relTimelinePos, m_max);
-        if (relTimelinePos != m_pos) {
-            m_pos = relTimelinePos;
+        if (relTimelinePos != m_pos - m_min) {
+            m_pos = relTimelinePos + m_min;
             slotUpdateItem();
         }
     }