projects
/
m17n
/
libotf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3073762
)
*** empty log message ***
author
handa
<handa>
Wed, 15 Oct 2003 13:14:27 +0000
(13:14 +0000)
committer
handa
<handa>
Wed, 15 Oct 2003 13:14:27 +0000
(13:14 +0000)
src/otfdrive.c
patch
|
blob
|
history
diff --git
a/src/otfdrive.c
b/src/otfdrive.c
index
36c36ff
..
84f2f5f
100644
(file)
--- 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];
}