From d7b2d1c3722dbd58d3d5861240180a52481ff7e6 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sun, 13 Sep 2015 20:20:35 +0200 Subject: [PATCH] plug-ins: fix file-tiff-load's load_rgb() which I broke two commits earlier --- plug-ins/common/file-tiff-load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/common/file-tiff-load.c b/plug-ins/common/file-tiff-load.c index fa729f80bb..32e1a067e9 100644 --- a/plug-ins/common/file-tiff-load.c +++ b/plug-ins/common/file-tiff-load.c @@ -1331,7 +1331,7 @@ load_rgba (TIFF *tif, #if G_BYTE_ORDER != G_LITTLE_ENDIAN /* Make sure our channels are in the right order */ guint32 row_start = row * image_width; - guint32 row_end = row_start + image_wigth; + guint32 row_end = row_start + image_width; guint32 i; for (i = row_start; i < row_end; i++) @@ -1340,7 +1340,7 @@ load_rgba (TIFF *tif, gegl_buffer_set (channel[0].buffer, GEGL_RECTANGLE (0, image_height - row - 1, - image_height, 1), + image_width, 1), 0, channel[0].format, ((guchar *) buffer) + row * image_width * 4, GEGL_AUTO_ROWSTRIDE);