[gimp] app: fix gimp_image_get_active_mask() for GRAY and INDEXED modes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix gimp_image_get_active_mask() for GRAY and INDEXED modes
- Date: Tue, 30 Apr 2013 16:40:17 +0000 (UTC)
commit c55c2b0c4d3be48c58fca924b36cff7581601bc4
Author: Michael Natterer <mitch gimp org>
Date: Tue Apr 30 18:35:05 2013 +0200
app: fix gimp_image_get_active_mask() for GRAY and INDEXED modes
Need to check image->active[ALPHA_G,I] for the alpha component.
app/core/gimpimage.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 16ffcc8..f5b0409 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -2316,10 +2316,10 @@ gimp_image_get_active_mask (const GimpImage *image)
case GIMP_GRAY:
case GIMP_INDEXED:
- mask |= (private->active[GRAY]) ? GIMP_COMPONENT_RED : 0;
- mask |= (private->active[GRAY]) ? GIMP_COMPONENT_GREEN : 0;
- mask |= (private->active[GRAY]) ? GIMP_COMPONENT_BLUE : 0;
- mask |= (private->active[ALPHA]) ? GIMP_COMPONENT_ALPHA : 0;
+ mask |= (private->active[GRAY]) ? GIMP_COMPONENT_RED : 0;
+ mask |= (private->active[GRAY]) ? GIMP_COMPONENT_GREEN : 0;
+ mask |= (private->active[GRAY]) ? GIMP_COMPONENT_BLUE : 0;
+ mask |= (private->active[ALPHA_G]) ? GIMP_COMPONENT_ALPHA : 0;
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]