Commit 76306289 authored by Ell's avatar Ell

app: fix wrong initialization in gimp_operation_{grow,shrink}_process()

s/radius_x/radius_y/ in the max buffer initialization.  Lead to
occasional wrong results when radius_y > radius_x.
parent 3232f386
......@@ -263,7 +263,7 @@ gimp_operation_grow_process (GeglOperation *operation,
else
max[i] = &buffer[(self->radius_y + 1) * (roi->width + self->radius_x - 1)];
for (j = 0; j < self->radius_x + 1; j++)
for (j = 0; j < self->radius_y + 1; j++)
max[i][j] = 0.0;
}
......
......@@ -309,7 +309,7 @@ gimp_operation_shrink_process (GeglOperation *operation,
}
if (! self->edge_lock)
for (j = 0 ; j < self->radius_x + 1; j++)
for (j = 0 ; j < self->radius_y + 1; j++)
max[0][j] = 0.0;
/* offset the max pointer by self->radius_x so the range of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment