app: copy expanded state of duplicated items

... so that duplicated group layers maintain the expanded state of
the original.
This commit is contained in:
Ell 2017-12-08 11:04:05 -05:00
parent 06f41db6aa
commit 4c55417951
1 changed files with 3 additions and 0 deletions

View File

@ -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);