buffer: fix sign error in computation of abyss skip

parent 24af236c
......@@ -465,7 +465,7 @@ gegl_buffer_iterate_write (GeglBuffer *buffer,
{
int skip, rows = MIN(height - bufy, tile_height - offsety);
rows = MIN(abyss_y_total - bufy, rows);
skip = bufy - buffer_abyss_y;
skip = buffer_abyss_y - bufy;
if (skip < 0 || skip > tile_height) skip = 0;
rows-=skip;
......@@ -864,7 +864,6 @@ gegl_buffer_iterate_read_simple (GeglBuffer *buffer,
fish = babl_fish ((gpointer) buffer->soft_format,
(gpointer) format);
while (bufy < height)
{
gint tiledy = buffer_y + bufy;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment