[gimp] app: fix wrong initialization in gimp_operation_{grow, shrink}_process()
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix wrong initialization in gimp_operation_{grow, shrink}_process()
- Date: Fri, 24 Jun 2016 01:20:32 +0000 (UTC)
commit 763062890b82682f8b3a8ba24f8c95c8f0ed1ee8
Author: Ell <ell_se yahoo com>
Date: Sun May 29 09:41:23 2016 +0000
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.
app/operations/gimpoperationgrow.c | 2 +-
app/operations/gimpoperationshrink.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/operations/gimpoperationgrow.c b/app/operations/gimpoperationgrow.c
index 97c40a1..dbd9ab4 100644
--- a/app/operations/gimpoperationgrow.c
+++ b/app/operations/gimpoperationgrow.c
@@ -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;
}
diff --git a/app/operations/gimpoperationshrink.c b/app/operations/gimpoperationshrink.c
index 1bd0964..67a25b0 100644
--- a/app/operations/gimpoperationshrink.c
+++ b/app/operations/gimpoperationshrink.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]