aboutsummaryrefslogtreecommitdiff
path: root/generic/Curve.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Curve.c')
-rw-r--r--generic/Curve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/Curve.c b/generic/Curve.c
index 39f9aee..3ca7062 100644
--- a/generic/Curve.c
+++ b/generic/Curve.c
@@ -2220,9 +2220,9 @@ PickVertex(ZnItem item,
*/
if (i == (unsigned int) *contour) {
j = (*vertex+1) % num_points;
- new_dist = ZnLineToPointDist(&points[*vertex], &points[j], &po);
+ new_dist = ZnLineToPointDist(&points[*vertex], &points[j], &po, NULL);
k = ((unsigned int)(*vertex-1)) % num_points;
- dist2 = ZnLineToPointDist(&points[*vertex], &points[k], &po);
+ dist2 = ZnLineToPointDist(&points[*vertex], &points[k], &po, NULL);
if (dist2 < new_dist) {
*o_vertex = k;
}