From 1036953ad01d80146912835b07347b739fb2e5e1 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 15 Oct 2003 13:14:27 +0000 Subject: [PATCH] *** empty log message *** --- src/otfdrive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; } -- 1.7.10.4