* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before

first usage.  From Savannah patch #6115.
This commit is contained in:
Werner Lemberg 2007-07-27 04:44:36 +00:00
parent 5bfe0d0465
commit 71dd687310
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-07-27 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
first usage. From Savannah patch #6115.
2007-07-16 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.

View File

@ -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;