diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Curve.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |