[gimp-gap] fixed Grab Path Points default settings bug #580416



commit 02c741b0fedf1a86462a45a324816f53a069b77f
Author: Wolfgang Hofer <wolfgangh svn gnome org>
Date:   Tue Apr 28 19:21:17 2009 +0200

    fixed Grab Path Points default settings bug #580416
---
 ChangeLog            |    6 ++++++
 gap/gap_mov_dialog.c |    7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7cdd08d..71c977d 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-28 Wolfgang Hofer <hof gimp org>
+
+- fixed Grab Path Points default settings bug #580416
+
+ * gap/gap_mov_dialog.c
+
 2009-04-24 Wolfgang Hofer <hof gimp org>
 
 - ffmpeg based video encoder colormodel conversion to YUV420P is only done
diff --git a/gap/gap_mov_dialog.c b/gap/gap_mov_dialog.c
old mode 100644
new mode 100755
index 225a8c3..5d2dbb9
--- a/gap/gap_mov_dialog.c
+++ b/gap/gap_mov_dialog.c
@@ -1237,10 +1237,6 @@ mov_grab_bezier_path(t_mov_gui_stuff *mgp, gint32 vectors_id, gint32 stroke_id,
                                          );
 
 
-    p_clear_one_point(l_ii);
-    pvals->point[l_ii].p_x = rint(xdouble);
-    pvals->point[l_ii].p_y = rint(ydouble);
-
     if(gap_debug)
     {
       printf("PATH distance: %.3f, (%.4f / %.4f) X:%03d Y: %03d slope:%.3f valid:%d success:%d\n"
@@ -1263,6 +1259,9 @@ mov_grab_bezier_path(t_mov_gui_stuff *mgp, gint32 vectors_id, gint32 stroke_id,
        return;
     }
     pvals->point_idx_max = l_ii;
+    p_clear_one_point(l_ii);
+    pvals->point[l_ii].p_x = rint(xdouble);
+    pvals->point[l_ii].p_y = rint(ydouble);
 
     distance += step_length;
   }



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