[gimp/metadata-browser] gimpressionist: Move variable to local block and delete redundant assignment



commit e9b1452c2b39e55fae76a9bdaf86c309c5a70213
Author: Mukund Sivaraman <muks banu com>
Date:   Tue Oct 11 10:25:07 2011 +0530

    gimpressionist: Move variable to local block and delete redundant assignment

 plug-ins/gimpressionist/repaint.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/gimpressionist/repaint.c b/plug-ins/gimpressionist/repaint.c
index 8cce97b..c56edce 100644
--- a/plug-ins/gimpressionist/repaint.c
+++ b/plug-ins/gimpressionist/repaint.c
@@ -353,7 +353,7 @@ repaint (ppm_t *p, ppm_t *a)
   int         tx = 0, ty = 0;
   ppm_t       tmp = {0, 0, NULL};
   ppm_t       atmp = {0, 0, NULL};
-  int         r, g, b, n, h, i, j, on, sn;
+  int         r, g, b, h, i, j, on, sn;
   int         num_brushes, maxbrushwidth, maxbrushheight;
   guchar      back[3] = {0, 0, 0};
   ppm_t      *brushes, *shadows;
@@ -828,6 +828,8 @@ repaint (ppm_t *p, ppm_t *a)
 
   for (; i; i--)
     {
+      int n;
+
       if (i % progstep == 0)
         {
           if(runningvals.run)
@@ -883,7 +885,7 @@ repaint (ppm_t *p, ppm_t *a)
             continue;
         }
 
-      n = sn = on = 0;
+      sn = on = 0;
 
       switch (runningvals.orient_type)
         {



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