From: handa Date: Wed, 15 Oct 2003 13:14:27 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-0-9-1~90 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1036953ad01d80146912835b07347b739fb2e5e1;p=m17n%2Flibotf.git *** empty log message *** --- diff --git a/src/otfdrive.c b/src/otfdrive.c index 36c36ff..84f2f5f 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -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]; }