mirror of https://github.com/GNOME/gimp.git
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:
parent
b38d0455c3
commit
fb4cd9aedc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue