summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-05-22 19:41:56 +0100
committerRobin Watts <robin.watts@artifex.com>2014-05-22 19:51:01 +0100
commit3eba9a357d65f9dfd4854b6645e09015e2e0267c (patch)
tree5205ccf0f389f1c522e98b9ae8d7e426afbcd7c2 /source/pdf
parent20bbb37a9b3403d5b7542e47adf88408c71bbac9 (diff)
downloadmupdf-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.c3
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];