From b1b9a1ce0add9cd963f5ee33cb38088e98bc3ac7 Mon Sep 17 00:00:00 2001 From: Nwutobo Samuel Ugochukwu Date: Tue, 18 May 2021 00:54:38 +0100 Subject: [PATCH] Fix #40 --- 3rdparty/software/sw_ft_stroker.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/3rdparty/software/sw_ft_stroker.c b/3rdparty/software/sw_ft_stroker.c index cb7feb5..259fe27 100644 --- a/3rdparty/software/sw_ft_stroker.c +++ b/3rdparty/software/sw_ft_stroker.c @@ -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; }