1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 05:22:40 +02:00

core: Copy filter clipping setting

Resolves #10997
When filters are duplicated for export, the clip property was
not being copied over. This caused filters that go outside the
layer boundaries (like Drop Shadow and Long Shadow) to be
clipped incorrectly. 
The simple fix was to copy over the clip value when the new
filter was duplicated.
This commit is contained in:
Alx Sa
2024-03-31 15:15:39 +00:00
parent 99e0446dfd
commit 752f0fb43d

View File

@@ -404,6 +404,7 @@ gimp_drawable_filter_duplicate (GimpDrawable *drawable,
filter = gimp_drawable_filter_new (drawable, undo_desc, node, icon_name);
g_object_unref (node);
gimp_drawable_filter_set_clip (filter, prior_filter->clip);
gimp_drawable_filter_set_opacity (filter, prior_filter->opacity);
gimp_drawable_filter_set_mode (filter,
prior_filter->paint_mode,