Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed May 17, 2021
1 parent 5f4d038 commit b1b9a1c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 3rdparty/software/sw_ft_stroker.c
Original file line number Diff line number Diff line change
Expand Up @@ -1915,12 +1915,15 @@ SW_FT_Error SW_FT_Stroker_ParseOutline(SW_FT_Stroker stroker,
Close:
if (error) goto Exit;

/* don't try to end the path if no segments have been generated */
if (!stroker->first_point) {
error = SW_FT_Stroker_EndSubPath(stroker);
if (stroker->first_point) {
stroker->subpath_open = TRUE;
error = ft_stroker_subpath_start(stroker, 0, 0);
if (error) goto Exit;
}

error = SW_FT_Stroker_EndSubPath(stroker);
if (error) goto Exit;

first = last + 1;
}

Expand Down

0 comments on commit b1b9a1c

Please sign in to comment.