diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-04-01 01:18:32 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-04-01 01:18:32 +0000 |
commit | bf7a86d4fa4515fa91e63635a8607732efacef63 (patch) | |
tree | c69fe1419fba37787568312263da9a08e19aee58 | |
parent | fb4dd25f0a74646d1d213ec6411cdfd004112f59 (diff) | |
download | ghostpdl-bf7a86d4fa4515fa91e63635a8607732efacef63.tar.gz |
Fix: If two embedded fonts had the same base font, the PDF file could wind
up with an invalid entry in the xref table.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@230 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/src/gdevpdft.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/src/gdevpdft.c b/gs/src/gdevpdft.c index 0775dd950..986977e4f 100644 --- a/gs/src/gdevpdft.c +++ b/gs/src/gdevpdft.c @@ -357,7 +357,8 @@ create_pdf_font(gx_device_pdf *pdev, gs_font *font, const gs_matrix *pomat, code = pdf_compute_font_descriptor(pdev, &fdesc, font, NULL); if (code < 0) return code; - ffid = pdf_obj_ref(pdev); + if (!pfd) + ffid = pdf_obj_ref(pdev); goto wf; case FONT_EMBED_NO: /* |