[gegl/soc-2012-ops: 16/29] Oilify Operation: Cleanup



commit e5562f87a2edab7d85815aa6a98b22ac54b7d14f
Author: Hans Lo <hansshulo gmail com>
Date:   Mon Jul 16 04:09:37 2012 -0400

    Oilify Operation: Cleanup

 operations/common/oilify.c |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/operations/common/oilify.c b/operations/common/oilify.c
index 5c3e97f..fc5c53f 100644
--- a/operations/common/oilify.c
+++ b/operations/common/oilify.c
@@ -117,16 +117,7 @@ oilify_pixel (gint x,
         {
           if (i*i + j*j <= radius_sq)
             {
-              if (x + i < 0 ||
-                  x + i > whole_rect->width ||
-                  y + j < 0 ||
-                  y + j > whole_rect->height)
-                {
-                  if (x + i < 0)
-                    g_print("%d %d\n", x+i, y+j);
-                  continue;
-                }
-              get_pixel (x + i,
+	      get_pixel (x + i,
                          y + j,
                          buf_width,
                          src_buf,



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