[gimp] app: copy expanded state of duplicated items



commit 4c55417951ad450590e82194b9010d0e22e00502
Author: Ell <ell_se yahoo com>
Date:   Fri Dec 8 11:04:05 2017 -0500

    app: copy expanded state of duplicated items
    
    ... so that duplicated group layers maintain the expanded state of
    the original.

 app/core/gimpitem.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index 7888cf3..57a7487 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -558,6 +558,9 @@ gimp_item_real_duplicate (GimpItem *item,
 
   g_free (new_name);
 
+  gimp_viewable_set_expanded (GIMP_VIEWABLE (new_item),
+                              gimp_viewable_get_expanded (GIMP_VIEWABLE (item)));
+
   g_object_unref (GET_PRIVATE (new_item)->parasites);
   GET_PRIVATE (new_item)->parasites = gimp_parasite_list_copy (private->parasites);
 


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