[ftstroke] Fix unpredictable failures (#54986).
* src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.
This commit is contained in:
parent
81c31f62cb
commit
181033d396
@ -1,3 +1,9 @@
|
||||
2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[ftstroke] Fix unpredictable failures (#54986).
|
||||
|
||||
* src/base/ftstroke.c (ft_sroke_border_lineto): Fix lineto check.
|
||||
|
||||
2018-11-08 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[ftstroke] Fix unpredictable failures (#54976).
|
||||
|
@ -432,8 +432,8 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
/* don't add zero-length lineto */
|
||||
if ( border->num_points > 0 &&
|
||||
/* don't add zero-length lineto, but always add moveto */
|
||||
if ( border->num_points > (FT_UInt)border->start &&
|
||||
FT_IS_SMALL( border->points[border->num_points - 1].x - to->x ) &&
|
||||
FT_IS_SMALL( border->points[border->num_points - 1].y - to->y ) )
|
||||
return error;
|
||||
|
Loading…
Reference in New Issue
Block a user