diff --git a/ChangeLog b/ChangeLog index 3079fed7c..9db3be5c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-07-27 Werner Lemberg + + * src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before + first usage. From Savannah patch #6115. + 2007-07-16 Werner Lemberg * docs/CHANGES: Updated. diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c index 6926f3a09..397a0a62e 100644 --- a/src/base/ftoutln.c +++ b/src/base/ftoutln.c @@ -474,12 +474,14 @@ FT_Pos yOffset ) { FT_UShort n; - FT_Vector* vec = outline->points; + FT_Vector* vec; if ( !outline ) return; + vec = outline->points; + for ( n = 0; n < outline->n_points; n++ ) { vec->x += xOffset;