[gimp] Bug 731697 - Colorize operation does not restitute alpha channel correctly
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 731697 - Colorize operation does not restitute alpha channel correctly
- Date: Sun, 15 Jun 2014 21:44:25 +0000 (UTC)
commit 0206effba055c6a5655ff8137f536789759de539
Author: Thomas Manni <thomas manni free fr>
Date: Sun Jun 15 23:39:09 2014 +0200
Bug 731697 - Colorize operation does not restitute alpha channel correctly
Copy the src alpha value in GimpOperationColorize.
app/operations/gimpoperationcolorize.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/gimpoperationcolorize.c b/app/operations/gimpoperationcolorize.c
index 1db74fb..b74d747 100644
--- a/app/operations/gimpoperationcolorize.c
+++ b/app/operations/gimpoperationcolorize.c
@@ -130,7 +130,7 @@ gimp_operation_colorize_process (GeglOperation *operation,
dest[RED] = rgb.r; /* * lum; */
dest[GREEN] = rgb.g; /* * lum; */
dest[BLUE] = rgb.b; /* * lum */;
- dest[ALPHA] = rgb.a;
+ dest[ALPHA] = src[ALPHA];
src += 4;
dest += 4;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]