[gimp] app: remove redundant opacity clamp from gimp_layer_new()



commit 06f41db6aac7c73dfccbc5f4279904457e463d38
Author: Ell <ell_se yahoo com>
Date:   Fri Dec 8 09:11:24 2017 -0500

    app: remove redundant opacity clamp from gimp_layer_new()
    
    The opacity will be clamped by gimp_layer_set_opacity().

 app/core/gimplayer-new.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimplayer-new.c b/app/core/gimplayer-new.c
index 30a88a5..699ae12 100644
--- a/app/core/gimplayer-new.c
+++ b/app/core/gimplayer-new.c
@@ -67,8 +67,6 @@ gimp_layer_new (GimpImage     *image,
                                          0, 0, width, height,
                                          format));
 
-  opacity = CLAMP (opacity, GIMP_OPACITY_TRANSPARENT, GIMP_OPACITY_OPAQUE);
-
   gimp_layer_set_opacity (layer, opacity, FALSE);
   gimp_layer_set_mode (layer, mode, FALSE);
 


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