[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.
This commit is contained in:
suzuki toshiya 2011-04-30 00:11:07 +09:00
parent b9aa1f1339
commit 89208861ef
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2011-04-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[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 <wl@gnu.org>
[autofit] Improve tracing messages.

View File

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