[gimp] plug-ins: fix the build in lcms.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: fix the build in lcms.c
- Date: Wed, 28 Nov 2012 08:26:32 +0000 (UTC)
commit 9c371064b7f9cbd95bc8c6f1212143831fd510a0
Author: Michael Natterer <mitch gimp org>
Date: Wed Nov 28 09:25:34 2012 +0100
plug-ins: fix the build in lcms.c
plug-ins/common/lcms.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c
index 73cf9eb..e6b2f0a 100644
--- a/plug-ins/common/lcms.c
+++ b/plug-ins/common/lcms.c
@@ -991,7 +991,7 @@ lcms_image_transform_rgb (gint32 image,
const Babl *layer_format = gimp_drawable_get_format (layer_id);
const gboolean has_alpha = babl_format_has_alpha (layer_format);
const Babl *type = babl_format_get_type (layer_format, 0);
- const Babl *iter_format;
+ const Babl *iter_format = NULL;
if (type == babl_type ("u8"))
{
@@ -1081,7 +1081,8 @@ lcms_image_transform_rgb (gint32 image,
* copy everything to dest before the transform
*/
if (layer_alpha)
- memcpy (iter->data[1], iter->data[0], iter->length * bpp);
+ memcpy (iter->data[1], iter->data[0],
+ iter->length * layer_bpp);
cmsDoTransform (transform,
iter->data[0], iter->data[1], iter->length);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]