[gegl] buffer: add one more column/row



commit 494dce13744aa15662d5a3b21891b54a93231e14
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Fri Mar 16 00:08:12 2012 +0000

    buffer: add one more column/row

 gegl/buffer/gegl-buffer-access.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index fa6140e..8b6db37 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1214,8 +1214,8 @@ void            gegl_buffer_set_pattern       (GeglBuffer          *buffer,
   cols = width / pat_width + 1;
   rows = height / pat_height + 1;
 
-  for (row = 0; row <= rows; row++)
-    for (col = 0; col <= cols; col++)
+  for (row = 0; row <= rows + 1; row++)
+    for (col = 0; col <= cols + 1; col++)
       {
         dst_rect.x = x_offset + (row-1) * pat_width;
         dst_rect.y = y_offset + (col-1) * pat_height;



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