mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2025-12-20 04:10:01 +01:00
[pshinter] Fix up degenerate contours.
* src/pshinter/pshalgo.c (psh_glyph_compute_extrema): Use correct goto label and shortcut degenerate contours.
This commit is contained in:
parent
e63975ca64
commit
d783d336e6
1 changed files with 3 additions and 2 deletions
|
|
@ -1299,7 +1299,8 @@
|
|||
PSH_Point point, before, after;
|
||||
|
||||
|
||||
if ( glyph->contours[n].count == 0 )
|
||||
/* we need at least 3 points to create an extremum */
|
||||
if ( glyph->contours[n].count < 3 )
|
||||
continue;
|
||||
|
||||
point = first;
|
||||
|
|
@ -1309,7 +1310,7 @@
|
|||
{
|
||||
before = before->prev;
|
||||
if ( before == first )
|
||||
goto Skip;
|
||||
goto Next;
|
||||
|
||||
} while ( before->org_u == point->org_u );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue