ref: 89208861effa8272f246aec360253b262047f982
parent: b9aa1f1339216e5c7653bb2922a9e88a2e2e9a01
author: suzuki toshiya <[email protected]>
date: Fri Apr 29 20:11:07 EDT 2011
[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.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-04-29 suzuki toshiya <[email protected]>
+
+ [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 <[email protected]>
[autofit] Improve tracing messages.
--- 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,