core: Fix drawable filter duplication

Resolves #11690
While exporting, the image is duplicated, in turn,
filters are also duplicated. This patch fixes the
duplication by also copying the parent
GimpFilter's properties.
This commit is contained in:
cheesequake 2024-06-15 04:41:22 +05:30 committed by Alx Sa
parent b38d0455c3
commit fb4cd9aedc
1 changed files with 4 additions and 0 deletions

View File

@ -424,6 +424,10 @@ gimp_drawable_filter_duplicate (GimpDrawable *drawable,
prior_filter->composite_mode);
gimp_drawable_filter_set_region (filter,
prior_filter->region);
gimp_filter_set_active (GIMP_FILTER (filter),
gimp_filter_get_active (GIMP_FILTER (prior_filter)));
gimp_filter_set_is_last_node (GIMP_FILTER (filter),
gimp_filter_get_is_last_node (GIMP_FILTER (prior_filter)));
image = gimp_item_get_image (GIMP_ITEM (drawable));
if (image != NULL)