[gimp] app: clean up spaces in GimpOperationColorEraseMode



commit b90fa4f0d3b4c7733d075368b2ee17f8e1096443
Author: Michael Natterer <mitch gimp org>
Date:   Wed Jan 11 12:42:27 2017 +0100

    app: clean up spaces in GimpOperationColorEraseMode

 app/operations/gimpoperationcolorerasemode.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/app/operations/gimpoperationcolorerasemode.c b/app/operations/gimpoperationcolorerasemode.c
index f9313ed..e9295f5 100644
--- a/app/operations/gimpoperationcolorerasemode.c
+++ b/app/operations/gimpoperationcolorerasemode.c
@@ -114,7 +114,7 @@ gimp_operation_color_erase_mode_process_pixels (gfloat              *in,
         alpha.r = color.r;
       else if (GEGL_FLOAT_EQUAL (color.r, bgcolor.r))
         alpha.r = 0.0;
-      else if ( color.r > bgcolor.r )
+      else if (color.r > bgcolor.r)
         alpha.r = (color.r - bgcolor.r) / (1.0 - bgcolor.r);
       else
         alpha.r = (bgcolor.r - color.r) / bgcolor.r;
@@ -137,9 +137,9 @@ gimp_operation_color_erase_mode_process_pixels (gfloat              *in,
       else
         alpha.b = (bgcolor.b - color.b) / (bgcolor.b);
 
-      if ( alpha.r > alpha.g )
+      if (alpha.r > alpha.g)
         {
-          if ( alpha.r > alpha.b )
+          if (alpha.r > alpha.b)
             {
               color.a = alpha.r;
             }
@@ -148,7 +148,7 @@ gimp_operation_color_erase_mode_process_pixels (gfloat              *in,
               color.a = alpha.b;
             }
         }
-      else if ( alpha.g > alpha.b )
+      else if (alpha.g > alpha.b)
         {
           color.a = alpha.g;
         }
@@ -184,4 +184,3 @@ gimp_operation_color_erase_mode_process_pixels (gfloat              *in,
 
   return TRUE;
 }
-


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