From 2a14b7731b7868f8c9953145a9c04a9d7966b1db Mon Sep 17 00:00:00 2001 From: lecoanet Date: Fri, 12 May 2000 08:00:19 +0000 Subject: Correction de la sous commande REPLACE_ALL dans Coords : oubli de mettre � jour le nouveau nombre de points. --- generic/Curve.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'generic') diff --git a/generic/Curve.c b/generic/Curve.c index 38faabb..1a9be02 100644 --- a/generic/Curve.c +++ b/generic/Curve.c @@ -1403,6 +1403,8 @@ Coords(Item item, int i; ZnContour *c; + /*printf("contour %d, num_pts %d, index %d, cmd %d\n", + contour, *num_pts, index, cmd);*/ if (contour < 0) { contour += cv->shape.num_contours; } @@ -1425,6 +1427,7 @@ Coords(Item item, ZnFree(c->points); } c->points = (ZnPoint *) ZnMalloc(*num_pts*sizeof(ZnPoint)); + c->num_points = *num_pts; memcpy(c->points, *pts, *num_pts*sizeof(ZnPoint)); } else { -- cgit v1.1