diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-29 09:20:42 +0000 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2014-07-29 09:20:42 +0000 |
commit | e0d2937997ad59c6b13d14c7e47540b9ea11a7e4 (patch) | |
tree | 705e1efb5d085496d0406cf017e687914df24453 /Build/source/texk/dvipdfm-x/pdfdev.c | |
parent | 117d1038285bced4517dbc0313a0bb3f799961ed (diff) |
Fix crash in fonts with no font map entry
The unit test does not actually work, no idea why the dvipdfmx can not
found the xbmc10.tfm file!
git-svn-id: svn://tug.org/texlive/trunk@34767 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfdev.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfdev.c b/Build/source/texk/dvipdfm-x/pdfdev.c index 6c0c5d7c7c3..6c2d1c5b4f3 100644 --- a/Build/source/texk/dvipdfm-x/pdfdev.c +++ b/Build/source/texk/dvipdfm-x/pdfdev.c @@ -1505,7 +1505,8 @@ pdf_dev_locate_font (const char *font_name, spt_t ptsize) if (font->font_id < 0) return -1; - font->cff_charsets = mrec->opt.cff_charsets; + if (mrec) + font->cff_charsets = mrec->opt.cff_charsets; /* We found device font here. */ if (i < num_dev_fonts) { |