Skip to content

Commit

Permalink
The psl_patch() function is intended for small polygons but it doesn'…
Browse files Browse the repository at this point in the history
…t fill them. (#8579)
  • Loading branch information
joa-quim authored Sep 9, 2024
1 parent db2ee65 commit a959fae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/postscriptlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -1744,6 +1744,7 @@ static int psl_patch (struct PSL_CTRL *PSL, double *x, double *y, int np) {
n1 = --n;
for (i = n - 1; i >= 0; i--, n--) PSL_command (PSL, "%d %d ", ix[n] - ix[i], iy[n] - iy[i]);
PSL_command (PSL, "%d %d %d SP\n", n1, ix[0], iy[0]);
PSL_command(PSL, "FO\n"); /* Close polygon and stroke/fill as set by PSL_setfill */
return (PSL_NO_ERROR);
}

Expand Down

0 comments on commit a959fae

Please sign in to comment.