[gimp] Bug 764608: Smudge tool clips out of gamut channel values...



commit 9e969961386e3080ed5fcb334369e39fd288f369
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Mon May 23 18:45:49 2016 +0200

    Bug 764608: Smudge tool clips out of gamut channel values...
    
    on layers with alpha channels

 app/gegl/gimp-gegl-loops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-loops.c b/app/gegl/gimp-gegl-loops.c
index 0bcbda5..d27e1f0 100644
--- a/app/gegl/gimp-gegl-loops.c
+++ b/app/gegl/gimp-gegl-loops.c
@@ -585,7 +585,7 @@ gimp_gegl_replace (GeglBuffer          *top_buffer,
 
                       new_val = bottom[b] + mask_val * (top[b] - bottom[b]);
 
-                      dest[b] = affect[b] ? MIN (new_val, 1.0) : bottom[b];
+                      dest[b] = affect[b] ? new_val : bottom[b];
                     }
                 }
 
@@ -612,7 +612,7 @@ gimp_gegl_replace (GeglBuffer          *top_buffer,
                 {
                   gfloat new_val = a_recip * (bottom[b] * s1_a + mask_val *
                                               (top[b] * s2_a - bottom[b] * s1_a));
-                  dest[b] = affect[b] ? MIN (new_val, 1.0) : bottom[b];
+                  dest[b] = affect[b] ? new_val : bottom[b];
                 }
             }
 


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