[gimp] gimp:cage-transform : fusion of two loop that didn't need to be seperate



commit 635d1ba37dc28cc8472c6803b366a23110bb6b1c
Author: Michael Muré <batolettre gmail com>
Date:   Thu Mar 24 19:13:39 2011 +0100

    gimp:cage-transform : fusion of two loop that didn't need to be seperate

 app/gegl/gimpoperationcagetransform.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/app/gegl/gimpoperationcagetransform.c b/app/gegl/gimpoperationcagetransform.c
index 778c2da..d291fa5 100644
--- a/app/gegl/gimpoperationcagetransform.c
+++ b/app/gegl/gimpoperationcagetransform.c
@@ -515,10 +515,7 @@ gimp_cage_transform_compute_destination (GimpCageConfig *config,
     {
       pos_x += coef[i] * config->cage_points[i].dest_point.x;
       pos_y += coef[i] * config->cage_points[i].dest_point.y;
-    }
 
-  for (i = 0; i < cvn; i++)
-    {
       pos_x += coef[i + cvn] * config->cage_points[i].edge_scaling_factor * config->cage_points[i].edge_normal.x;
       pos_y += coef[i + cvn] * config->cage_points[i].edge_scaling_factor * config->cage_points[i].edge_normal.y;
     }



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