diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-05-22 19:41:56 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-05-22 19:51:01 +0100 |
commit | 3eba9a357d65f9dfd4854b6645e09015e2e0267c (patch) | |
tree | 5205ccf0f389f1c522e98b9ae8d7e426afbcd7c2 /source/pdf | |
parent | 20bbb37a9b3403d5b7542e47adf88408c71bbac9 (diff) | |
download | mupdf-3eba9a357d65f9dfd4854b6645e09015e2e0267c.tar.xz |
Flush pending text on a change of CTM.
Without this, comparefiles/Bug695086 renders the barcode test upside
down.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-op-run.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c index 2f4a8c0a..3d4eb9d3 100644 --- a/source/pdf/pdf-op-run.c +++ b/source/pdf/pdf-op-run.c @@ -2273,9 +2273,10 @@ static void pdf_run_c(pdf_csi *csi, void *state) static void pdf_run_cm(pdf_csi *csi, void *state) { pdf_run_state *pr = (pdf_run_state *)state; - pdf_gstate *gstate = pr->gstate + pr->gtop; + pdf_gstate *gstate; fz_matrix m; + gstate = pdf_flush_text(csi, pr); m.a = csi->stack[0]; m.b = csi->stack[1]; m.c = csi->stack[2]; |