From 774b116e08f311dd890f1ead68652f805c8ed239 Mon Sep 17 00:00:00 2001 From: Philip Lafleur Date: Sun, 18 Jul 2004 00:30:56 +0000 Subject: [PATCH] moved array initialization out of variable declaration. Fixes bug #147799. 2004-07-17 Philip Lafleur * plug-ins/common/polar.c (polarize_func): moved array initialization out of variable declaration. Fixes bug #147799. --- ChangeLog | 5 +++++ plug-ins/common/polar.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0172b95751..018a074a4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-07-17 Philip Lafleur + + * plug-ins/common/polar.c (polarize_func): moved array + initialization out of variable declaration. Fixes bug #147799. + 2004-07-17 Michael Natterer * app/widgets/gimphelp-ids.h: added the removed help IDs back. diff --git a/plug-ins/common/polar.c b/plug-ins/common/polar.c index a5b64924a6..5e12ec3cae 100644 --- a/plug-ins/common/polar.c +++ b/plug-ins/common/polar.c @@ -322,9 +322,14 @@ polarize_func (gint x, if (calc_undistorted_coords (x, y, &cx, &cy)) { guchar pixel1[4], pixel2[4], pixel3[4], pixel4[4]; - guchar *values[4] = {pixel1, pixel2, pixel3, pixel4}; + guchar *values[4]; GimpPixelFetcher *pft = (GimpPixelFetcher*) data; + values[0] = pixel1; + values[1] = pixel2; + values[2] = pixel3; + values[3] = pixel4; + gimp_pixel_fetcher_get_pixel (pft, cx, cy, pixel1); gimp_pixel_fetcher_get_pixel (pft, cx + 1, cy, pixel2); gimp_pixel_fetcher_get_pixel (pft, cx, cy + 1, pixel3);