* src/truetype/ttgxvar.c (TT_Get_MM_Var): Fix named style loop.

Patch from Savannah bug #22541.
This commit is contained in:
Werner Lemberg 2008-03-13 06:38:37 +00:00
parent cd874831dc
commit 3863c95146
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-03-13 Derek Clegg <dclegg@apple.com>
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Fix named style loop.
Patch from Savannah bug #22541.
2008-03-03 Masatoshi Kimura <VYV03354@nifty.ne.jp>
* src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,

View File

@ -4,7 +4,7 @@
/* */
/* TrueType GX Font Variation loader */
/* */
/* Copyright 2004, 2005, 2006, 2007 by */
/* Copyright 2004, 2005, 2006, 2007, 2008 by */
/* David Turner, Robert Wilhelm, Werner Lemberg, and George Williams. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@ -754,7 +754,7 @@
}
ns = mmvar->namedstyle;
for ( i = 0; i < fvar_head.instanceCount; ++i )
for ( i = 0; i < fvar_head.instanceCount; ++i, ++ns )
{
if ( FT_FRAME_ENTER( 4L + 4L * fvar_head.axisCount ) )
goto Exit;