summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mupdf/pdf_build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mupdf/pdf_build.c b/mupdf/pdf_build.c
index c6e8c21c..60385a4b 100644
--- a/mupdf/pdf_build.c
+++ b/mupdf/pdf_build.c
@@ -556,7 +556,7 @@ pdf_showglyph(pdf_csi *csi, int cid)
ucsbuf[0] = fontdesc->cidtoucs[cid];
ucslen = 1;
}
- if (ucslen == 0)
+ if (ucslen == 0 || (ucslen == 1 && ucsbuf[0] == 0))
{
ucsbuf[0] = '?';
ucslen = 1;