fix stupid typo that prevented the truetype loader from working correctly

This commit is contained in:
David Turner 2007-06-22 22:22:38 +00:00
parent 5b4d435a96
commit 8f626b04f3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-23 David Turner <david@freetype.org>
* src/truetype/ttgload.c (TT_Load_Simple): fix typo that prevented
the truetype loader from loading most glyphs. ooops !
2007-06-20 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28

View File

@ -271,7 +271,7 @@
for ( cont++; cont < cont_limit; cont++ )
{
cont[0] = FT_NEXT_USHORT( p );
if ( cont[0] > prev_cont )
if ( cont[0] <= prev_cont )
{
/* unordered contours: this is invalid */
error = FT_Err_Invalid_Table;