diff options
author | lecoanet | 2001-11-26 09:24:21 +0000 |
---|---|---|
committer | lecoanet | 2001-11-26 09:24:21 +0000 |
commit | 739d556eb6715c91d5e9748a7670badac289dfe2 (patch) | |
tree | 151c99e37172b7b5bf2665860553f4d135accd87 /generic/Tabular.c | |
parent | 1d767c74075553476c668dbf45547cf910e50697 (diff) | |
download | tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.zip tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.tar.gz tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.tar.bz2 tkzinc-739d556eb6715c91d5e9748a7670badac289dfe2.tar.xz |
Adaptation pour le clippnig non rectangulaire
Diffstat (limited to 'generic/Tabular.c')
-rw-r--r-- | generic/Tabular.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/Tabular.c b/generic/Tabular.c index 5a0acb4..c24244c 100644 --- a/generic/Tabular.c +++ b/generic/Tabular.c @@ -448,24 +448,23 @@ GetAnchor(Item item, * * GetClipVertices -- * Get the clipping shape. + * Never ever call TRI_FREE on the tristrip returned by GetClipVertices. * ********************************************************************************** */ static ZnBool -GetClipVertices(Item item, - ZnPoly *poly) +GetClipVertices(Item item, + ZnTriStrip *tristrip) { FieldSet field_set = &((TabularItem) item)->field_set; ZnDim width, height; ZnPoint *points; - poly->num_contours = 0; - if (field_set->label_format) { ITEM_P.GetLabelBBox(field_set, &width, &height); ZnListAssertSize(item->wi->work_pts, 2); points = (ZnPoint *) ZnListArray(item->wi->work_pts); - POLY_CONTOUR1(poly, points, 2); + TRI_STRIP1(tristrip, points, 2); points[0] = field_set->label_pos; points[1].x = points[0].x + width; points[1].y = points[0].y + height; @@ -585,6 +584,7 @@ static ItemClassStruct TABULAR_ITEM_CLASS = { GetFieldSet, GetAnchor, GetClipVertices, + NULL, /* GetContours */ Coords, NULL, /* InsertChars */ NULL, /* DeleteChars */ |