aboutsummaryrefslogtreecommitdiff
path: root/generic/Curve.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Curve.c')
-rw-r--r--generic/Curve.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/generic/Curve.c b/generic/Curve.c
index bad3de5..37567ac 100644
--- a/generic/Curve.c
+++ b/generic/Curve.c
@@ -2249,6 +2249,26 @@ PickVertex(Item item,
}
}
+/*
+ **********************************************************************************
+ *
+ * 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);
+}
+
/*
**********************************************************************************
@@ -2269,7 +2289,7 @@ static ItemClassStruct CURVE_ITEM_CLASS = {
Configure,
Query,
NULL, /* GetFieldSet */
- NULL, /* GetAnchor */
+ GetAnchor,
GetClipVertices,
GetContours,
Coords,