From 19bc92aa7956df4410743039e39825e13374c323 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 19 Mar 2012 19:46:40 -0300 Subject: [PATCH] cameo/area.c (do_line): shorten segments to avoid duplicating outline cuts We considered the outlines for dropping entire segments but not for calculating their start and end points. --- cameo/area.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cameo/area.c b/cameo/area.c index df8382d..cf58116 100644 --- a/cameo/area.c +++ b/cameo/area.c @@ -257,8 +257,8 @@ static void do_line(const struct path *path, const struct path **sub, last = *s; if (next-x > 2*r_tool-2*overlap) { new = path_new(r_tool, ""); - path_add(new, x, y, path->first->z); - path_add(new, next, y, path->first->z); + path_add(new, x+r_tool-overlap, y, path->first->z); + path_add(new, next-r_tool+overlap, y, path->first->z); new->next = *res; *res = new; }