From: Ben Harris Date: Sat, 2 Nov 2024 22:10:33 +0000 (+0000) Subject: Correct charstring stack accounting in emit_contour() X-Git-Tag: bedstead-3.246~62 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~bjharris/git?a=commitdiff_plain;h=492cea7bf12ed8020fa97e86d9f364c8eaaf511b;p=bedstead.git Correct charstring stack accounting in emit_contour() The first point doesn't count because it gets an rmoveto rather than an rlineto. --- diff --git a/bedstead.c b/bedstead.c index 605e2e2..afdc75f 100644 --- a/bedstead.c +++ b/bedstead.c @@ -3571,7 +3571,7 @@ static void emit_contour(point *p0, vec *cur) { point *p = p0, *p1; - int stacksize = 0; + int stacksize = -2; /* Allow for initial rmoveto. */ if (p->prev) p->prev->next = NULL; /* Break the loop. */ do {