[gegl] operations: pick noise-spread's unspread border pixels from the right coords



commit ae12590707ba844b0d56f99d015eaf93299b964b
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 29 19:23:27 2013 +0200

    operations: pick noise-spread's unspread border pixels from the right coords

 operations/common/noise-spread.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/operations/common/noise-spread.c b/operations/common/noise-spread.c
index ee30858..0c8338e 100644
--- a/operations/common/noise-spread.c
+++ b/operations/common/noise-spread.c
@@ -26,13 +26,13 @@
 
 #ifdef GEGL_CHANT_PROPERTIES
 
-gegl_chant_int (amount_x, _("Horizontal"),
-                0, 256, 5,
-                _("Horizontal spread amount"))
+gegl_chant_int  (amount_x, _("Horizontal"),
+                 0, 256, 5,
+                 _("Horizontal spread amount"))
 
-gegl_chant_int (amount_y, _("Vertical"),
-                0, 256, 5,
-                _("Vertical spread amount"))
+gegl_chant_int  (amount_y, _("Vertical"),
+                 0, 256, 5,
+                 _("Vertical spread amount"))
 
 gegl_chant_seed (seed, _("Seed"),
                  _("Random seed"))
@@ -101,8 +101,8 @@ apply_spread (gint                 amount_x,
               y < 0 || y >= img_height)
             {
               /* Else just copy it */
-              x = x1;
-              y = y1;
+              x = x1 + roi->x;
+              y = y1 + roi->y;
             }
 
           gegl_buffer_get (src, GEGL_RECTANGLE (x, y, 1, 1), 1.0, format,


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