aboutsummaryrefslogtreecommitdiffstats
path: root/lut.c
diff options
context:
space:
mode:
Diffstat (limited to 'lut.c')
-rw-r--r--lut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lut.c b/lut.c
index 2901355..eda748b 100644
--- a/lut.c
+++ b/lut.c
@@ -72,7 +72,7 @@ op_map_work(struct ida_image *src, struct ida_rect *rect,
unsigned char *scanline;
int i;
- scanline = src->data + line * src->i.width * 3;
+ scanline = ida_image_scanline(src, line);
memcpy(dst,scanline,src->i.width * 3);
if (line < rect->y1 || line >= rect->y2)
return;