[gimp] libgimp: use NORMAL mode for a transparent temporary layer in gimpexport.c
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimp: use NORMAL mode for a transparent temporary layer in gimpexport.c
- Date: Sun, 20 Aug 2017 15:17:00 +0000 (UTC)
commit 033e33fbf6264151c74fa1b17132580081a2b6d3
Author: Michael Natterer <mitch gimp org>
Date: Sun Aug 20 15:06:26 2017 +0200
libgimp: use NORMAL mode for a transparent temporary layer in gimpexport.c
libgimp/gimpexport.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libgimp/gimpexport.c b/libgimp/gimpexport.c
index b18bdcc..d064a0b 100644
--- a/libgimp/gimpexport.c
+++ b/libgimp/gimpexport.c
@@ -88,14 +88,16 @@ export_merge (gint32 image_ID,
if (nvisible <= 1)
{
- /* if there is only one (or zero) visible layer, add a new transparent
- layer that has the same size as the canvas. The merge that follows
- will ensure that the offset, opacity and size are correct */
+ /* if there is only one (or zero) visible layer, add a new
+ * transparent layer that has the same size as the canvas. The
+ * merge that follows will ensure that the offset, opacity and
+ * size are correct
+ */
transp = gimp_layer_new (image_ID, "-",
gimp_image_width (image_ID),
gimp_image_height (image_ID),
gimp_drawable_type (*drawable_ID) | 1,
- 100.0, GIMP_LAYER_MODE_NORMAL_LEGACY);
+ 100.0, GIMP_LAYER_MODE_NORMAL);
gimp_image_insert_layer (image_ID, transp, -1, 1);
gimp_selection_none (image_ID);
gimp_edit_clear (transp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]