* src/base/ftstroke.c (FT_Stroker_EndSubPath): Ignore tiny gaps.

Fixes bug #1020.
This commit is contained in:
Alexei Podtelezhnikov 2021-01-27 16:08:08 -05:00
parent 4c3bd2ab93
commit 7ae5609dbe
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2021-01-27 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/base/ftstroke.c (FT_Stroker_EndSubPath): Ignore tiny gaps.
Fixes bug #1020.
2021-01-27 Alexei Podtelezhnikov <apodtele@gmail.com>
[stroker] Minor clean-up.

View File

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