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

core: fix wrong if condition in gimp_drawable_duplicate

Probably a typo: the wrong control variable was used in the if statement.
This caused a segfault when duplicating a drawable if new_filter was NULL.
This commit is contained in:
Gabriele Barbero
2025-09-06 17:02:34 +02:00
parent 9ec28cec54
commit 5a34856e38

View File

@@ -584,7 +584,7 @@ gimp_drawable_duplicate (GimpItem *item,
new_filter = gimp_drawable_filter_duplicate (new_drawable,
filter);
if (filter)
if (new_filter)
{
gimp_drawable_filter_apply (new_filter, NULL);
gimp_drawable_filter_commit (new_filter, TRUE, NULL, FALSE);