Permalink
Browse files

buffer: fix gegl_buffer_set_color

  • Loading branch information...
1 parent b42348f commit d0096a5af814ae438b065f3d5ae601a06b9994cf @hodefoting hodefoting committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}
}

0 comments on commit d0096a5

Please sign in to comment.