[pitivi: 16/20] timeline.py: fix clamping of position in MoveContext._rippleTo



commit d13c686fa4fa3e5eb8f8d22be77f3622b62f9f5a
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Tue Jul 14 18:19:02 2009 -0700

    timeline.py: fix clamping of position in MoveContext._rippleTo

 pitivi/timeline/timeline.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 6d1b4a4..5fc30a1 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1108,8 +1108,8 @@ class MoveContext(EditingContext):
         self._restoreValues(self.ripple_originals)
 
     def _rippleTo(self, position, priority):
-        position = max(0, position - self.focal_offset[0])
-        priority = max(0, priority - self.focal_offset[1])
+        position = max(0, position, self.focal_offset[0])
+        priority = max(0, priority, self.focal_offset[1])
         if self._snap:
             position = self.timeline.snapToEdge(position, 
                 position + self.ripple_span)



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