diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c index e2b022769f..425ff5f5d5 100644 --- a/app/core/gimpitem.c +++ b/app/core/gimpitem.c @@ -637,8 +637,15 @@ gimp_item_configure (GimpItem *item, gboolean gimp_item_is_attached (GimpItem *item) { + GimpViewable *parent; + g_return_val_if_fail (GIMP_IS_ITEM (item), FALSE); + parent = gimp_viewable_get_parent (GIMP_VIEWABLE (item)); + + if (parent) + return gimp_item_is_attached (GIMP_ITEM (parent)); + return GIMP_ITEM_GET_CLASS (item)->is_attached (item); }