diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2023-03-02 18:15:00 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2023-03-02 18:19:38 +0000 |
commit | 8ef4f126c0f0587990e00f7db4e9a204221265d3 (patch) | |
tree | 73ac6d5e0ecd48cafff515f6541f482ae1e58fd6 | |
parent | 6e064441f9c08a7a207971239e2c8978c3ed10db (diff) | |
download | ghostpdl-8ef4f126c0f0587990e00f7db4e9a204221265d3.tar.gz |
Fix gdevdocxw.c breakage.
In copy/pasting from one function to another, I had failed to
replace 'subfont' with 'font'. I thought tested this both
locally, and in the cluster. The cluster doesn't test this
file.
I can offer no such excuse for why my own local testing didn't
show it up. Apologies.
-rw-r--r-- | devices/vector/gdevdocxw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devices/vector/gdevdocxw.c b/devices/vector/gdevdocxw.c index e0773e7a7..d579db79d 100644 --- a/devices/vector/gdevdocxw.c +++ b/devices/vector/gdevdocxw.c @@ -1022,8 +1022,8 @@ docxwrite_process_plain_text(gx_device_docxwrite_t *tdev, gs_text_enum_t *pte) return code; if (!prevFontName && penum->text_state->FontName) { - gs_rect *fbbox = &((gs_font_base *)subfont)->FontBBox; - gs_matrix fm = *&((gs_font_base *)subfont)->FontMatrix; + gs_rect *fbbox = &((gs_font_base *)font)->FontBBox; + gs_matrix fm = *&((gs_font_base *)font)->FontMatrix; gs_rect bbox; code = gs_bbox_transform(fbbox, &fm, &bbox); |