[pitivi] elements: Set clip inpoints to prevent keyframes from breaking on split/trim



commit 4dcbf5c6cc4c077f9e014559ee5b18db045ed9ab
Author: Mathieu Duponchelle <mduponchelle1 gmail com>
Date:   Wed Oct 30 01:52:11 2013 +0100

    elements: Set clip inpoints to prevent keyframes from breaking on split/trim
    
    Fixes bug #709784

 pitivi/timeline/elements.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 2b9164e..a32e657 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -771,6 +771,7 @@ class Line(Clutter.Actor):
 
     def transposeXY(self, x, y):
         x -= self.timelineElement.props.x + CONTROL_WIDTH - self.timelineElement.timeline._scroll_point.x
+        x += Zoomable.nsToPixel(self.timelineElement.bElement.props.in_point)
         y -= self.timelineElement.props.y
         return x, y
 
@@ -950,7 +951,7 @@ class Keyframe(Clutter.Actor):
         newValue = self.valueStart - (delta_y / EXPANDED_SIZE)
 
         # Don't overlap first and last keyframes.
-        newTs = min(max(newTs, self.inpoint + 1), self.duration - 1)
+        newTs = min(max(newTs, self.inpoint + 1), self.duration + self.inpoint - 1)
 
         newValue = min(max(newValue, 0.0), 1.0)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]