[gimp/metadata-browser] app: Prevent uninitialized values in the heal tool.
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: Prevent uninitialized values in the heal tool.
- Date: Wed, 12 Sep 2012 23:04:55 +0000 (UTC)
commit defb744a0897636d10661d8c6531297e8eb9c0e6
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]