[gegl] gcut: fix transforms for animation curves



commit 05bd1a9132833542738f0e865e97c2207aed15ef
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Aug 9 13:44:07 2017 +0200

    gcut: fix transforms for animation curves

 gcut/gcut-ui.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gcut/gcut-ui.c b/gcut/gcut-ui.c
index 6d8d0e0..4819bee 100644
--- a/gcut/gcut-ui.c
+++ b/gcut/gcut-ui.c
@@ -2143,11 +2143,11 @@ static float print_props (Mrg *mrg, GeglEDL *edl, GeglNode *node, float x, float
          gegl_path_calc_y_for_x (path, 0, &y);
          y = VID_HEIGHT * 0.9 - ((y - miny) / (maxy - miny)) * VID_HEIGHT * 0.8;
          cairo_move_to (cr, 0, y);
-         for (j = -1.0; j < clip_get_duration (edl->active_clip) + 1.0; j += fragment)
+         for (j = edl->active_clip->start; j < edl->active_clip->start + clip_get_duration 
(edl->active_clip); j += fragment)
          {
            gegl_path_calc_y_for_x (path, j, &y);
            y = VID_HEIGHT * 0.9 - ((y - miny) / (maxy - miny)) * VID_HEIGHT * 0.8;
-           cairo_line_to (cr, j, y);
+           cairo_line_to (cr, j - edl->active_clip->start, y);
          }
 
        cairo_restore (cr);


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