diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2011-05-26 10:58:31 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2011-06-14 16:25:09 +0100 |
commit | cba939306ceacde74aac1d9b69ca6cf08ce1ebce (patch) | |
tree | cfc4a0d3d603a8ac59b7badbd30a2ef8312f9306 /gs/base/gdevpdtt.c | |
parent | 49ae789184ebb094c29b14a6778e8fa823f6637a (diff) |
Use correct enumerator for PCL type 3 fonts in pdfwrite
Part of the change for type 3 fonts from PCL used the wrong enumerator.
The code relies on a text enumerator actually being a show enumerator,
which is guaranteed true if we use the right one, but may not be if we
use the wrong one.
This didn't seem to be causing any problems, but fixed anyway.
Diffstat (limited to 'gs/base/gdevpdtt.c')
-rw-r--r-- | gs/base/gdevpdtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/base/gdevpdtt.c b/gs/base/gdevpdtt.c index ce5b989ee..5c446ad82 100644 --- a/gs/base/gdevpdtt.c +++ b/gs/base/gdevpdtt.c @@ -2944,7 +2944,7 @@ pdf_text_process(gs_text_enum_t *pte) * a show enumerator, so this is safe. We need to update the * graphics state pointer below which is why we need this. */ - gs_show_enum psenum = *(gs_show_enum *)pte; + gs_show_enum psenum = *(gs_show_enum *)pte_default; gs_state *pgs = (gs_state *)penum->pis; gs_text_enum_procs_t const *save_procs = pte_default->procs; gs_text_enum_procs_t special_procs = *pte_default->procs; |