diff --git a/ChangeLog b/ChangeLog index 1668f7b45..4e3e08b85 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2021-01-27 Alexei Podtelezhnikov + + * src/base/ftstroke.c (FT_Stroker_EndSubPath): Ignore tiny gaps. + + Fixes bug #1020. + 2021-01-27 Alexei Podtelezhnikov [stroker] Minor clean-up. diff --git a/src/base/ftstroke.c b/src/base/ftstroke.c index d0ad8335d..dc64b1d8d 100644 --- a/src/base/ftstroke.c +++ b/src/base/ftstroke.c @@ -1900,8 +1900,8 @@ else { /* close the path if needed */ - if ( stroker->center.x != stroker->subpath_start.x || - stroker->center.y != stroker->subpath_start.y ) + if ( !FT_IS_SMALL( stroker->center.x - stroker->subpath_start.x ) || + !FT_IS_SMALL( stroker->center.y - stroker->subpath_start.y ) ) { error = FT_Stroker_LineTo( stroker, &stroker->subpath_start ); if ( error )