[gimp] warp: Move variable to local block and drop dead assignment



commit 3ed78b90719e0e1bffa82671c803cb65ede1e659
Author: Mukund Sivaraman <muks banu com>
Date:   Wed Oct 12 16:55:58 2011 +0530

    warp: Move variable to local block and drop dead assignment

 plug-ins/common/wind.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/wind.c b/plug-ins/common/wind.c
index ca9e92c..fe88187 100644
--- a/plug-ins/common/wind.c
+++ b/plug-ins/common/wind.c
@@ -602,7 +602,6 @@ render_wind_row (guchar *sb,
   gint blend_amt_R, blend_amt_G, blend_amt_B, blend_amt_A = 0 ;
   gint blend_colour_R, blend_colour_G, blend_colour_B, blend_colour_A = 0 ;
   gint target_colour_R, target_colour_G, target_colour_B, target_colour_A = 0;
-  gdouble bleed_length_max;
   gint bleed_variation;
   gint n;
   gint sbi;  /* starting bleed index */
@@ -626,6 +625,8 @@ render_wind_row (guchar *sb,
                               threshold,
                               (bytes > 3)))
         {
+          gdouble bleed_length_max;
+
           /* we have found an edge, do bleeding */
           sbi = Ri + comp_stride;
           blend_colour_R = sb[Ri];
@@ -634,7 +635,6 @@ render_wind_row (guchar *sb,
           target_colour_R = sb[sbi];
           target_colour_G = sb[sbi+1];
           target_colour_B = sb[sbi+2];
-          bleed_length_max = strength;
 
           if (bytes > 3)
             {



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