Revert "Issue #15824: better detect the first filter."

This reverts commit 75e665f0ed.

In fact, this commit was wrong too and was creating new issues with
pass-through group layers. See #15956.
This commit is contained in:
Jehan 2026-03-06 21:00:10 +01:00
parent 755642e76a
commit 0074bef0ea

View file

@ -1429,12 +1429,8 @@ gimp_drawable_filter_sync_region (GimpDrawableFilter *filter)
filters = gimp_drawable_get_filters (filter->drawable);
/* The first test is because the filter might not be added yet. */
if (GIMP_LIST (filters)->queue->tail == NULL)
{
first_filter = TRUE;
}
else if (GIMP_LIST (filters)->queue->tail != NULL &&
filter == GIMP_LIST (filters)->queue->tail->data)
if (GIMP_LIST (filters)->queue->tail != NULL &&
filter == GIMP_LIST (filters)->queue->tail->data)
{
GimpDrawableFilter *next_filter = NULL;