[pitivi] Curve: treat start of stream as left edge of clip
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] Curve: treat start of stream as left edge of clip
- Date: Wed, 24 Jun 2009 14:02:21 +0000 (UTC)
commit 69d072e30058a643d6fce3094ba3a8a09172a460
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri Jun 12 01:20:31 2009 +0200
Curve: treat start of stream as left edge of clip
pitivi/ui/curve.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index 2989627..59e7653 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -154,7 +154,7 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
Zoomable.nsToPixel(self.element.duration), self.height)
def _getKeyframeXY(self, kf):
- x = self.nsToPixel(kf.time)
+ x = self.nsToPixel(kf.time - self.element.in_point)
y = kf.value * self._height
return point.Point(x + self.bounds.x1, y + self.bounds.y1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]