From fd62652445f30a6aab602ba1a6b5454b8ed6537b Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 7 Sep 2007 14:02:46 +0000 Subject: The group bbox didn't take care of the items visibilty status resulting in wrong sized cumulative bboxes. The group has to be warned when an item visibility change. Both cases are handled by this patch. --- generic/Group.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'generic/Group.c') diff --git a/generic/Group.c b/generic/Group.c index 9249adc..6031811 100644 --- a/generic/Group.c +++ b/generic/Group.c @@ -795,7 +795,9 @@ ComputeCoordinates(ZnItem item, ZnResetBBox(&item->item_bounding_box); current_item = group->head; while (current_item != ZN_NO_ITEM) { - ZnAddBBoxToBBox(&item->item_bounding_box, ¤t_item->item_bounding_box); + if (ISSET(current_item->flags, ZN_VISIBLE_BIT)) { + ZnAddBBoxToBBox(&item->item_bounding_box, ¤t_item->item_bounding_box); + } current_item = current_item->next; } /* -- cgit v1.1