diff --git a/app/core/gimpitem-exclusive.c b/app/core/gimpitem-exclusive.c index 1287005f2a..72251c8a37 100644 --- a/app/core/gimpitem-exclusive.c +++ b/app/core/gimpitem-exclusive.c @@ -256,9 +256,11 @@ gimp_item_exclusive_get_lists (GimpItem *item, if (other != item) { /* we are only interested in toplevel items that are not - * item's ancestor + * item's ancestor and same level items. */ - if (! gimp_viewable_get_parent (GIMP_VIEWABLE (other)) && + if ((! gimp_viewable_get_parent (GIMP_VIEWABLE (other)) || + gimp_viewable_get_parent (GIMP_VIEWABLE (other)) == + gimp_viewable_get_parent (GIMP_VIEWABLE (item))) && ! gimp_viewable_is_ancestor (GIMP_VIEWABLE (other), GIMP_VIEWABLE (item))) {