< prev index next >
src/java.desktop/share/native/libfreetype/src/autofit/afcjk.c
Print this page
*** 1182,1191 ****
--- 1182,1193 ----
FT_Int is_round = 0; /* does it contain round segments? */
FT_Int is_straight = 0; /* does it contain straight segments? */
seg = edge->first;
+ if ( !seg )
+ goto Skip_Loop;
do
{
FT_Bool is_serif;
*** 1244,1253 ****
--- 1246,1256 ----
seg = seg->edge_next;
} while ( seg != edge->first );
+ Skip_Loop:
/* set the round/straight flags */
edge->flags = AF_EDGE_NORMAL;
if ( is_round > 0 && is_round >= is_straight )
edge->flags |= AF_EDGE_ROUND;
< prev index next >