summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp b/Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp
index ef7d6fe2b55..33ee8336534 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp
+++ b/Build/source/texk/web2c/xetexdir/XeTeXFontInst.cpp
@@ -311,9 +311,10 @@ XeTeXFontInst::getGlyphName(LEGlyphID gid, int& nameLen)
{
le_uint32 len;
const char *p = (const char*)readFontTable(LE_POST_TABLE_TAG, len);
- if (p != NULL) {
+ if (p != NULL)
return getGlyphNamePtr(p, len, gid, &nameLen);
- }
+ else
+ return NULL;
}
LEUnicode32