aboutsummaryrefslogtreecommitdiff
path: root/freetype/src/truetype/ttgxvar.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-11-10 15:49:48 +0100
committermarha <marha@users.sourceforge.net>2011-11-10 15:49:48 +0100
commitd783adea42f29bd7917929597ca1031b70587e1d (patch)
tree888ffc3043e659513c1760fdb7bd531810723afa /freetype/src/truetype/ttgxvar.c
parentba1993a2eefbd475b13f373a861a401f06584cf8 (diff)
downloadvcxsrv-d783adea42f29bd7917929597ca1031b70587e1d.tar.gz
vcxsrv-d783adea42f29bd7917929597ca1031b70587e1d.tar.bz2
vcxsrv-d783adea42f29bd7917929597ca1031b70587e1d.zip
Updated to freetype 2.4.7
Diffstat (limited to 'freetype/src/truetype/ttgxvar.c')
-rw-r--r--freetype/src/truetype/ttgxvar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/freetype/src/truetype/ttgxvar.c b/freetype/src/truetype/ttgxvar.c
index 37bbe6d2e..69b702f62 100644
--- a/freetype/src/truetype/ttgxvar.c
+++ b/freetype/src/truetype/ttgxvar.c
@@ -4,7 +4,7 @@
/* */
/* TrueType GX Font Variation loader */
/* */
-/* Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010 by */
+/* Copyright 2004-2011 by */
/* David Turner, Robert Wilhelm, Werner Lemberg, and George Williams. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -1474,6 +1474,9 @@
{
for ( j = 0; j < point_count; ++j )
{
+ if ( localpoints[j] >= n_points )
+ continue;
+
delta_xy[localpoints[j]].x += FT_MulFix( deltas_x[j], apply );
delta_xy[localpoints[j]].y += FT_MulFix( deltas_y[j], apply );
}