From 89208861effa8272f246aec360253b262047f982 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Sat, 30 Apr 2011 00:11:07 +0900 Subject: [PATCH] [truetype] Fix a bug in the sfnt table checksum getter. * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Check the return value of face->goto_table() correctly. --- ChangeLog | 7 +++++++ src/truetype/ttobjs.c | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d5971c236..9dc248a41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-04-29 suzuki toshiya + + [truetype] Fix a bug in the sfnt table checksum getter. + + * src/truetype/ttobjs.c (tt_get_sfnt_checksum): Check the + return value of face->goto_table() correctly. + 2011-04-28 Werner Lemberg [autofit] Improve tracing messages. diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c index 349547a28..6778faf45 100644 --- a/src/truetype/ttobjs.c +++ b/src/truetype/ttobjs.c @@ -219,10 +219,10 @@ else if ( !face->goto_table ) return 0; - else if ( !face->goto_table( face, - face->dir_tables[i].Tag, - face->root.stream, - NULL ) ) + else if ( face->goto_table( face, + face->dir_tables[i].Tag, + face->root.stream, + NULL ) ) return 0; return (FT_ULong)tt_synth_sfnt_checksum( face->root.stream,