*** empty log message ***
authorhanda <handa>
Wed, 15 Oct 2003 13:14:27 +0000 (13:14 +0000)
committerhanda <handa>
Wed, 15 Oct 2003 13:14:27 +0000 (13:14 +0000)
src/otfdrive.c

index 36c36ff..84f2f5f 100644 (file)
@@ -958,11 +958,11 @@ OTF_get_unicode (OTF *otf, OTF_GlyphID code)
 {
   if (! otf->cmap
       && OTF_get_table (otf, "cmap") < 0)
-    return code;
+    return 0;
   if (code == 0
       || code > otf->cmap->max_glyph_id
-      || otf->cmap->decode_table)
-    return code;
+      || ! otf->cmap->decode_table)
+    return 0;
   return otf->cmap->decode_table[code];
 }