From 291574b65a188d22a833d7264acde9a7b6b9eb85 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Tue, 30 Jul 2013 12:12:08 -0400 Subject: [PATCH] Fix invalid taper if penwidth is too large. --- lib/common/taper.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/common/taper.c b/lib/common/taper.c index f885a5f21..617b77305 100644 --- a/lib/common/taper.c +++ b/lib/common/taper.c @@ -223,10 +223,14 @@ static vararr_t* pathtolines (bezier* bez, double initwid) for (step = 1; step <= BEZIERSUBDIVISION; step++) { p1 = Bezier(V, 3, (double) step / BEZIERSUBDIVISION, NULL, NULL); seglen = l2dist(p0, p1); - if (seglen > initwid/10) { + /* If initwid is large, this may never happen, so turn off. I assume this is to prevent + * too man points or too small a movement. Perhaps a better test can be made, but for now + * we turn it off. + */ + /* if (seglen > initwid/10) { */ linelen += seglen; insertArr (arr, p1, linelen); - } + /* } */ p0 = p1; } } -- 2.40.0