diff options
Diffstat (limited to 'generic/Group.c')
-rw-r--r-- | generic/Group.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/generic/Group.c b/generic/Group.c index 4305353..d020186 100644 --- a/generic/Group.c +++ b/generic/Group.c @@ -1590,6 +1590,26 @@ ZnGroupInsertItem(Item group, ITEM.Invalidate(group, ZN_COORDS_FLAG); } +/* + ********************************************************************************** + * + * GetAnchor -- + * + ********************************************************************************** + */ +static void +GetAnchor(Item item, + ZnAnchor anchor, + ZnPoint *p) +{ + ZnBBox *bbox = &item->item_bounding_box; + + Origin2Anchor(&bbox->orig, + bbox->corner.x - bbox->orig.x, + bbox->corner.y - bbox->orig.y, + anchor, p); +} + /* ********************************************************************************** @@ -1610,7 +1630,7 @@ static ItemClassStruct GROUP_ITEM_CLASS = { Configure, Query, NULL, /* GetFieldSet */ - NULL, /* GetAnchor */ + GetAnchor, NULL, /* GetClipVertices */ NULL, /* GetContours */ Coords, |