mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00: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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user