Commit 97b4e887 authored by Brian Stafford's avatar Brian Stafford Committed by Øyvind "pippin" Kolås

TIFF saved with bad height if buffer origin is non-zero

Height of data exceeds TIFF headers by buffer y origin.
Initial rows filled with garbage.
parent f5ac5634
......@@ -344,9 +344,9 @@ save_contiguous(GeglOperation *operation,
gegl_buffer_get(input, &tile, 1.0, format, buffer,
GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);
for (row = y; row < y + tile_height; row++)
for (row = 0; row < tile_height; row++)
{
guchar *tile_row = buffer + (bytes_per_row * (row - y));
guchar *tile_row = buffer + (bytes_per_row * row);
gint written;
written = TIFFWriteScanline(p->tiff, tile_row, row, 0);
......
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