aboutsummaryrefslogtreecommitdiff
path: root/generic/Group.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Group.c')
-rw-r--r--generic/Group.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/Group.c b/generic/Group.c
index 38f2f8a..1188aba 100644
--- a/generic/Group.c
+++ b/generic/Group.c
@@ -356,7 +356,10 @@ SetXShape(Item grp)
* the tristrip, so we can use the corresponding
* polygon instead of going through all the triangles.
*/
- if (tristrip.fan) {
+ if (tristrip.strips[j].fan) {
+ /* Skip the center */
+ p++;
+ num_pts--;
xp2 = xpts2 = ZnMalloc(num_pts*sizeof(XPoint));
for (i = 0 ; i < num_pts; i++, p++, xp2++) {
xp2->x = (short) ((p->x - min_x) * width / max_x);
@@ -1240,6 +1243,7 @@ Coords(Item item,
int index,
int cmd,
ZnPoint **pts,
+ char **controls,
int *num_pts)
{
if ((cmd == COORDS_ADD) || (cmd == COORDS_ADD_LAST) || (cmd == COORDS_REMOVE)) {