Correct charstring stack accounting in emit_contour()

The first point doesn't count because it gets an rmoveto rather than an
rlineto.
This commit is contained in:
Ben Harris 2024-11-02 22:10:33 +00:00
parent 36a99e6005
commit 492cea7bf1

View File

@ -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 {