diff --git a/gegl/buffer/gegl-buffer-iterator.c b/gegl/buffer/gegl-buffer-iterator.c index 191c148..6de99cb 100644 --- a/gegl/buffer/gegl-buffer-iterator.c +++ b/gegl/buffer/gegl-buffer-iterator.c @@ -155,8 +155,8 @@ gegl_buffer_tile_iterator_next (GeglBufferTileIterator *i) gint tile_height = buffer->tile_storage->tile_height; gint buffer_shift_x = buffer->shift_x; gint buffer_shift_y = buffer->shift_y; - gint buffer_x = i->roi.x + buffer_shift_x; - gint buffer_y = i->roi.y + buffer_shift_y; + gint buffer_x = i->roi.x - buffer_shift_x; + gint buffer_y = i->roi.y - buffer_shift_y; if (i->roi.width == 0 || i->roi.height == 0) return FALSE;