[gimp] Bug 143315 - Turning off alpha channel visibility should make alpha=255



commit d169244955128e1fd5eeeebc2797e4677c1a2135
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 7 22:36:42 2012 +0200

    Bug 143315 - Turning off alpha channel visibility should make alpha=255
    
    When the alpha channel is "invisible", make it 1.0 not 0.0.

 app/operations/gimpoperationmaskcomponents.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/operations/gimpoperationmaskcomponents.c b/app/operations/gimpoperationmaskcomponents.c
index b817f9c..3df9f4c 100644
--- a/app/operations/gimpoperationmaskcomponents.c
+++ b/app/operations/gimpoperationmaskcomponents.c
@@ -156,10 +156,10 @@ gimp_operation_mask_components_process (GeglOperation       *operation,
   gfloat                      *aux  = aux_buf;
   gfloat                      *dest = out_buf;
   GimpComponentMask            mask = self->mask;
-  static const gfloat          nothing[] = { 0.0, 0.0, 0.0, 0.0 };
+  static const gfloat          nothing[] = { 0.0, 0.0, 0.0, 1.0 };
 
   if (! aux)
-    aux = nothing;
+    aux = (gfloat *) nothing;
 
   while (samples--)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]