[gimp/gimp-2-10] app: use default new-layer mode for layer groups and text layers
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: use default new-layer mode for layer groups and text layers
- Date: Wed, 6 Jun 2018 06:41:44 +0000 (UTC)
commit 8a127d795ee09395d3c303c1190aa279c33794f7
Author: Ell <ell_se yahoo com>
Date: Wed Jun 6 02:36:50 2018 -0400
app: use default new-layer mode for layer groups and text layers
When creating a layer group, or a text layer, use the image's
default new-layer mode, instead of always using (non-legacy)
NORMAL.
(cherry picked from commit 7c7b6eb537204a478df687c0b6eb44d52eb6c4e6)
app/core/gimpgrouplayer.c | 4 ++++
app/text/gimptextlayer.c | 4 ++++
2 files changed, 8 insertions(+)
---
diff --git a/app/core/gimpgrouplayer.c b/app/core/gimpgrouplayer.c
index 2aa44b215c..e91291b23a 100644
--- a/app/core/gimpgrouplayer.c
+++ b/app/core/gimpgrouplayer.c
@@ -1376,6 +1376,10 @@ gimp_group_layer_new (GimpImage *image)
0, 0, 1, 1,
format));
+ gimp_layer_set_mode (GIMP_LAYER (group),
+ gimp_image_get_default_new_layer_mode (image),
+ FALSE);
+
return GIMP_LAYER (group);
}
diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c
index ba3622c193..5bbacb4fe5 100644
--- a/app/text/gimptextlayer.c
+++ b/app/text/gimptextlayer.c
@@ -443,6 +443,10 @@ gimp_text_layer_new (GimpImage *image,
gimp_image_get_layer_format (image,
TRUE)));
+ gimp_layer_set_mode (GIMP_LAYER (layer),
+ gimp_image_get_default_new_layer_mode (image),
+ FALSE);
+
gimp_text_layer_set_text (layer, text);
if (! gimp_text_layer_render (layer))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]