Commit 3dc00181747d197690c69b45b821fb2b719dac69

Wu, Chia-I (吳佳一) 2006-02-14T13:36:28

* src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.

diff --git a/ChangeLog b/ChangeLog
index 096928e..fff1dff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-02-14  Chia-I Wu  <b90201047@ntu.edu.tw>
 
+	* src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.
+
+2006-02-14  Chia-I Wu  <b90201047@ntu.edu.tw>
+
 	* src/sfnt/ttmtx.c (tt_face_load_hhea, tt_face_load_hmtx): Simply
 	return error if table is missing.
 	Check table length in non-FT_OPTIMIZE_MEMORY'ed `tt_face_load_hmtx'.
diff --git a/src/sfnt/ttmtx.c b/src/sfnt/ttmtx.c
index 5d326c7..929c55d 100644
--- a/src/sfnt/ttmtx.c
+++ b/src/sfnt/ttmtx.c
@@ -442,7 +442,7 @@
     FT_UShort       k      = header->number_Of_HMetrics;
 
 
-    if ( k == 0 || k >= (FT_UInt)face->max_profile.numGlyphs )
+    if ( k == 0 || gindex >= (FT_UInt)face->max_profile.numGlyphs )
     {
       *abearing = *aadvance = 0;
       return SFNT_Err_Ok;