diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Group.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/Group.c b/generic/Group.c index 2630e95..38f2f8a 100644 --- a/generic/Group.c +++ b/generic/Group.c @@ -1103,9 +1103,9 @@ Pick(Item item, ZnPick ps) { GroupItem group = (GroupItem) item; - Item p_item, current_item; + Item p_item=ZN_NO_ITEM, current_item; WidgetInfo *wi = item->wi; - int p_part, aperture = ps->aperture; + int p_part=0, aperture = ps->aperture; double dist, best = 1e10; ZnBBox bbox, inter, *clip_box; ZnPoint *p = ps->point; @@ -1469,6 +1469,8 @@ ZnGroupExtractItem(Item item) group->tail = item->previous; } + ITEM.Invalidate((Item) group, ZN_COORDS_FLAG); + item->previous = ZN_NO_ITEM; item->next = ZN_NO_ITEM; item->parent = NULL; @@ -1559,6 +1561,8 @@ ZnGroupInsertItem(Item group, mark_item->next = item; } } + + ITEM.Invalidate(group, ZN_COORDS_FLAG); } |