[gimp] app: set the complete layer mode in gimp_text_layer_from_layer()



commit 3cd717120c53534fc96a576d87b2c539cbb646e8
Author: Michael Natterer <mitch gimp org>
Date:   Wed Feb 22 00:58:44 2017 +0100

    app: set the complete layer mode in gimp_text_layer_from_layer()

 app/text/gimptextlayer-xcf.c |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/app/text/gimptextlayer-xcf.c b/app/text/gimptextlayer-xcf.c
index 3ad4696..982cc96 100644
--- a/app/text/gimptextlayer-xcf.c
+++ b/app/text/gimptextlayer-xcf.c
@@ -198,12 +198,18 @@ gimp_text_layer_from_layer (GimpLayer *layer,
   drawable->private->buffer = gimp_drawable_get_buffer (GIMP_DRAWABLE (layer));
   GIMP_DRAWABLE (layer)->private->buffer = NULL;
 
-  gimp_layer_set_opacity    (GIMP_LAYER (text_layer),
-                             gimp_layer_get_opacity (layer), FALSE);
-  gimp_layer_set_mode       (GIMP_LAYER (text_layer),
-                             gimp_layer_get_mode (layer), FALSE);
-  gimp_layer_set_lock_alpha (GIMP_LAYER (text_layer),
-                             gimp_layer_get_lock_alpha (layer), FALSE);
+  gimp_layer_set_opacity         (GIMP_LAYER (text_layer),
+                                  gimp_layer_get_opacity (layer), FALSE);
+  gimp_layer_set_mode            (GIMP_LAYER (text_layer),
+                                  gimp_layer_get_mode (layer), FALSE);
+  gimp_layer_set_blend_space     (GIMP_LAYER (text_layer),
+                                  gimp_layer_get_blend_space (layer), FALSE);
+  gimp_layer_set_composite_space (GIMP_LAYER (text_layer),
+                                  gimp_layer_get_composite_space (layer), FALSE);
+  gimp_layer_set_composite_mode  (GIMP_LAYER (text_layer),
+                                  gimp_layer_get_composite_mode (layer), FALSE);
+  gimp_layer_set_lock_alpha      (GIMP_LAYER (text_layer),
+                                  gimp_layer_get_lock_alpha (layer), FALSE);
 
   gimp_text_layer_set_text (text_layer, text);
 


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