aboutsummaryrefslogtreecommitdiffstats
path: root/wr/write-tiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'wr/write-tiff.c')
-rw-r--r--wr/write-tiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wr/write-tiff.c b/wr/write-tiff.c
index 29d0788..a52c5a1 100644
--- a/wr/write-tiff.c
+++ b/wr/write-tiff.c
@@ -42,7 +42,7 @@ tiff_write(FILE *fp, struct ida_image *img)
}
for (y = 0; y < img->i.height; y++) {
- buf = img->data + 3*img->i.width*y;
+ buf = ida_image_scanline(img, y);
TIFFWriteScanline(TiffHndl, buf, y, 0);
}
TIFFClose(TiffHndl);