Fix Savannah bug #44412 (part 1).

* src/base/ftstroke.c (ft_stroker_inside): Handle near U-turns.
This commit is contained in:
Alexei Podtelezhnikov 2015-03-10 23:25:49 -04:00
parent eee7d8baa1
commit 6b832c872d
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-03-10 Alexei Podtelezhnikov <apodtele@gmail.com>
Fix Savannah bug #44412 (part 1).
* src/base/ftstroke.c (ft_stroker_inside): Handle near U-turns.
2015-03-10 Werner Lemberg <wl@gnu.org>
[base] Rename `FT_Bitmap_New' to `FT_Bitmap_Init'.

View File

@ -999,7 +999,9 @@
/* Only intersect borders if between two lineto's and both */
/* lines are long enough (line_length is zero for curves). */
if ( !border->movable || line_length == 0 )
/* Also avoid U-turns of nearly 180 degree. */
if ( !border->movable || line_length == 0 ||
theta > 0x59C000 || theta < -0x59C000 )
intersect = FALSE;
else
{