[gegl] buffer: fix gegl_buffer_set_color
- From: Ãyvind KolÃs <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: fix gegl_buffer_set_color
- Date: Thu, 15 Mar 2012 21:23:05 +0000 (UTC)
commit d0096a5af814ae438b065f3d5ae601a06b9994cf
Author: Ãyvind KolÃs <pippin gimp org>
Date: Thu Mar 15 21:22:58 2012 +0000
buffer: fix gegl_buffer_set_color
gegl/buffer/gegl-buffer-access.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 567588f..a1f5600 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1248,7 +1248,7 @@ void gegl_buffer_set_color (GeglBuffer *dst,
{
int j;
for (j = 0; j < i->length; j++)
- memcpy (((guchar*)(i->data[j * pxsize])), buf, pxsize);
+ memcpy (((guchar*)(i->data[0])) + pxsize * j, buf, pxsize);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]