aboutsummaryrefslogtreecommitdiff
path: root/generic/Item.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Item.c')
-rw-r--r--generic/Item.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/Item.c b/generic/Item.c
index e67eb1e..c0f3cb3 100644
--- a/generic/Item.c
+++ b/generic/Item.c
@@ -3372,8 +3372,9 @@ Invalidate(Item item,
**********************************************************************************
*
* InvalidateItems --
- * Invalidate the geometric state of all items of a group
- * belonging to a given class.
+ * Invalidate the geometric state of all items belonging
+ * to a given class. The search for items starts at group
+ * and proceed depth first.
*
**********************************************************************************
*/
@@ -3391,6 +3392,9 @@ InvalidateItems(Item group,
if (item->class == item_class) {
Invalidate(item, ZN_COORDS_FLAG);
}
+ else if (item->class == ZnGroup) {
+ InvalidateItems(item, item_class);
+ }
item = item->next;
}
}