Commit 89208861effa8272f246aec360253b262047f982

suzuki toshiya 2011-04-30T00:11:07

[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.

diff --git a/ChangeLog b/ChangeLog
index d5971c2..9dc248a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 349547a..6778faf 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,