[gimp] app: formatting cleanup in gimppaintbrush.c



commit ed821c81846cad7841719676005491beec4d67f9
Author: Michael Natterer <mitch gimp org>
Date:   Sun Mar 13 13:06:15 2016 +0100

    app: formatting cleanup in gimppaintbrush.c

 app/paint/gimppaintbrush.c |   38 ++++++++++++++++++--------------------
 1 files changed, 18 insertions(+), 20 deletions(-)
---
diff --git a/app/paint/gimppaintbrush.c b/app/paint/gimppaintbrush.c
index f767657..01bc539 100644
--- a/app/paint/gimppaintbrush.c
+++ b/app/paint/gimppaintbrush.c
@@ -95,27 +95,25 @@ gimp_paintbrush_paint (GimpPaintCore    *paint_core,
   switch (paint_state)
     {
     case GIMP_PAINT_STATE_INIT:
-        {
-          GimpContext   *context = GIMP_CONTEXT (paint_options);
-          GimpBrushCore *brush_core = GIMP_BRUSH_CORE (paint_core);
-          GimpDynamics  *dynamics;
-
-          dynamics = gimp_context_get_dynamics (GIMP_CONTEXT (paint_options));
-
-          if (! gimp_dynamics_is_output_enabled (dynamics, GIMP_DYNAMICS_OUTPUT_COLOR) &&
-              (! brush_core->brush || ! gimp_brush_get_pixmap (brush_core->brush)))
-            {
-              /* We don't save gradient color history and
-               * pixmap brushes have no color to save.
-               */
-              GimpRGB foreground;
-
-              gimp_context_get_foreground (context, &foreground);
-              gimp_palettes_add_color_history (context->gimp,
-                                               &foreground);
-            }
-        }
+      {
+        GimpContext   *context    = GIMP_CONTEXT (paint_options);
+        GimpBrushCore *brush_core = GIMP_BRUSH_CORE (paint_core);
+        GimpDynamics  *dynamics   = gimp_context_get_dynamics (context);
+
+        if (! gimp_dynamics_is_output_enabled (dynamics, GIMP_DYNAMICS_OUTPUT_COLOR) &&
+            (! brush_core->brush || ! gimp_brush_get_pixmap (brush_core->brush)))
+          {
+            /* We don't save gradient color history and pixmap brushes
+             * have no color to save.
+             */
+            GimpRGB foreground;
+
+            gimp_context_get_foreground (context, &foreground);
+            gimp_palettes_add_color_history (context->gimp, &foreground);
+          }
+      }
       break;
+
     case GIMP_PAINT_STATE_MOTION:
       _gimp_paintbrush_motion (paint_core, drawable, paint_options,
                                sym, GIMP_OPACITY_OPAQUE);


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