Skip to content

Commit

Permalink
core: Fix drawable filter duplication
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cheesequake authored and cmyk-student committed Jun 15, 2024
1 parent b38d045 commit fb4cd9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/core/gimpdrawablefilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb4cd9a

Please sign in to comment.