moved array initialization out of variable declaration. Fixes bug #147799.
2004-07-17 Philip Lafleur <plafleur@cvs.gnome.org> * plug-ins/common/polar.c (polarize_func): moved array initialization out of variable declaration. Fixes bug #147799.
This commit is contained in:

committed by
Philip Lafleur

parent
09c6ee7363
commit
774b116e08
@ -1,3 +1,8 @@
|
||||
2004-07-17 Philip Lafleur <plafleur@cvs.gnome.org>
|
||||
|
||||
* plug-ins/common/polar.c (polarize_func): moved array
|
||||
initialization out of variable declaration. Fixes bug #147799.
|
||||
|
||||
2004-07-17 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimphelp-ids.h: added the removed help IDs back.
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user