[pitivi] elements: Fix lines appearing a bit to the left
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] elements: Fix lines appearing a bit to the left
- Date: Sun, 2 Mar 2014 12:37:59 +0000 (UTC)
commit 2167d95ea01a53b5d6b4583e2b3c80b2f25b685e
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Sat Mar 1 15:07:35 2014 +0100
elements: Fix lines appearing a bit to the left
This broke recently in 54408036318a624b4ccade928dcc4fdbe93b74b9
pitivi/timeline/elements.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index cead1c0..3bd2d5c 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -571,7 +571,7 @@ class TimelineElement(Clutter.Actor, Zoomable):
line.props.width = hyp
line.props.height = KEYFRAME_SIZE
line.props.rotation_angle_z = math.degrees(math.asin(sinX))
- line.props.x = self.nsToPixel(lastKeyframe.value.timestamp - self.bElement.props.in_point) -
KEYFRAME_SIZE / 2
+ line.props.x = self.nsToPixel(lastKeyframe.value.timestamp - self.bElement.props.in_point)
line.props.y = EXPANDED_SIZE - (EXPANDED_SIZE * lastKeyframe.value.value) - KEYFRAME_SIZE / 2
line.canvas.invalidate()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]