[gimp] gimp_text_layer_from_layer(): also copy the "lock-content" property



commit 2b3c03593f4b1fc982b503df0cebe7c0e743ef6c
Author: Michael Natterer <mitch gimp org>
Date:   Sun Aug 30 10:49:32 2009 +0200

    gimp_text_layer_from_layer(): also copy the "lock-content" property

 app/text/gimptextlayer-xcf.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/text/gimptextlayer-xcf.c b/app/text/gimptextlayer-xcf.c
index d6bc35c..b0aaa3a 100644
--- a/app/text/gimptextlayer-xcf.c
+++ b/app/text/gimptextlayer-xcf.c
@@ -214,8 +214,9 @@ gimp_text_layer_from_layer (GimpLayer *layer,
                       gimp_item_get_width  (GIMP_ITEM (layer)),
                       gimp_item_get_height (GIMP_ITEM (layer)));
 
-  gimp_item_set_visible (item, gimp_item_get_visible (GIMP_ITEM (layer)), FALSE);
-  gimp_item_set_linked  (item, gimp_item_get_linked  (GIMP_ITEM (layer)), FALSE);
+  gimp_item_set_visible      (item, gimp_item_get_visible (GIMP_ITEM (layer)), FALSE);
+  gimp_item_set_linked       (item, gimp_item_get_linked (GIMP_ITEM (layer)), FALSE);
+  gimp_item_set_lock_content (item, gimp_item_get_lock_content (GIMP_ITEM (layer)), FALSE);
 
   drawable->private->tiles = gimp_drawable_get_tiles (GIMP_DRAWABLE (layer));
   GIMP_DRAWABLE (layer)->private->tiles = NULL;



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