gimp_image_item_list_filter(): actually honor the passed parameters

Gah, I added these parameters for a reason, so do *not* remove all
child items if remove_children is FALSE.
This commit is contained in:
Michael Natterer 2009-08-27 19:36:22 +02:00
parent 19a168cb9d
commit f05c5ecfdc
1 changed files with 13 additions and 10 deletions

View File

@ -252,6 +252,8 @@ gimp_image_item_list_filter (const GimpItem *exclude,
if (! list)
return NULL;
if (remove_children)
{
if (exclude)
list = gimp_image_item_list_remove_children (list, exclude);
@ -266,6 +268,7 @@ gimp_image_item_list_filter (const GimpItem *exclude,
if (next)
next->prev = l;
}
}
if (remove_locked)
{