[pitivi] curve: fix getKeyframeXY
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] curve: fix getKeyframeXY
- Date: Wed, 24 Jun 2009 14:02:06 +0000 (UTC)
commit 1803e0796f6aa43162bd2d8c3e7e122f52333224
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri May 29 16:50:43 2009 -0700
curve: fix getKeyframeXY
pitivi/ui/curve.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pitivi/ui/curve.py b/pitivi/ui/curve.py
index 348d923..340f3c4 100644
--- a/pitivi/ui/curve.py
+++ b/pitivi/ui/curve.py
@@ -151,9 +151,9 @@ class Curve(goocanvas.ItemSimple, goocanvas.Item, View, Zoomable):
Zoomable.nsToPixel(self.element.duration), self.height)
def _getKeyframeXY(self, kf):
- x = self.nsToPixel(kf.time + self.element.start)
+ x = self.nsToPixel(kf.time)
y = kf.value * self._height
- return x, y
+ return x self.bounds.x1, y + self.bounds.y1
def _controlPoint(self, cr, kf):
x, y = self._getKeyframeXY(kf)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]