From c22b6a2884a3b058684271616443ae5c62b00705 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 17 Mar 2012 18:20:24 +0100 Subject: [PATCH] app: move variable to local scope --- app/core/gimpdrawable-blend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c index ee3fd163b8..b74c226fd2 100644 --- a/app/core/gimpdrawable-blend.c +++ b/app/core/gimpdrawable-blend.c @@ -573,7 +573,6 @@ gradient_precalc_shapeburst (GimpImage *image, gfloat *distp; gint size; gpointer pr; - guchar white[1] = { OPAQUE_OPACITY }; /* allocate the distance map */ distR.tiles = tile_manager_new (PR->w, PR->h, sizeof (gfloat)); @@ -614,6 +613,8 @@ gradient_precalc_shapeburst (GimpImage *image, } else { + guchar white[1] = { OPAQUE_OPACITY }; + /* Otherwise, just fill the shapeburst to white */ color_region (&tempR, white); }