[gimp] app: Prevent uninitialized values in the heal tool.
- From: Alexia Death <alexiade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Prevent uninitialized values in the heal tool.
- Date: Tue, 24 Apr 2012 19:10:02 +0000 (UTC)
commit 2920344524aa358c589897c39b0438cc99817b04
Author: Michael Henning <mikehenning eclipse net>
Date: Sat Apr 21 15:59:42 2012 -0400
app: Prevent uninitialized values in the heal tool.
Previously, the black checkers of the left hand edge of the solution
matrix were not being assigned a value.
app/paint/gimpheal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/paint/gimpheal.c b/app/paint/gimpheal.c
index da38b3b..68b2ba1 100644
--- a/app/paint/gimpheal.c
+++ b/app/paint/gimpheal.c
@@ -333,7 +333,7 @@ gimp_heal_laplace_iteration (gdouble *matrix,
off0 = i * rowstride;
offm0 = i * width;
- for (j = (i % 2) + 1; j < width; j += 2)
+ for (j = (i % 2) ? 0 : 1; j < width; j += 2)
{
off = off0 + j * depth;
offm = offm0 + j;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]