[gegl] operations: yet another fix for the CPU version of edge-laplace



commit 01ad7ef513bf7c59c0b46da9acbcc04fb6cefcd9
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Wed Oct 16 17:46:29 2013 +0200

    operations: yet another fix for the CPU version of edge-laplace
    
    and update the reference image.

 operations/common/edge-laplace.c              |    2 +-
 tests/compositions/reference/edge-laplace.png |  Bin 288717 -> 288494 bytes
 2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/edge-laplace.c b/operations/common/edge-laplace.c
index e627cc4..9b513d5 100644
--- a/operations/common/edge-laplace.c
+++ b/operations/common/edge-laplace.c
@@ -249,7 +249,7 @@ edge_laplace (GeglBuffer          *src,
                         src_pix[c     - src_width * 4] < 0.0f ||
                         src_pix[c - 4 + src_width * 4] < 0.0f ||
                         src_pix[c + 4 + src_width * 4] < 0.0f ||
-                        src_pix[      + src_width * 4] < 0.0f ||
+                        src_pix[c     + src_width * 4] < 0.0f ||
                         src_pix[c - 4                ] < 0.0f ||
                         src_pix[c + 4                ] < 0.0f)) ?
               current : 0.0f;
diff --git a/tests/compositions/reference/edge-laplace.png b/tests/compositions/reference/edge-laplace.png
index 1dc2bd1..b1e560f 100644
Binary files a/tests/compositions/reference/edge-laplace.png and 
b/tests/compositions/reference/edge-laplace.png differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]