diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-09-01 22:16:44 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-01 22:16:44 +0200 |
commit | 49f0bf36d071637c2d7ccfda307709e4f4fb66c8 (patch) | |
tree | 9c7938283860282e15fd341b0170f39304a2d1ca | |
parent | ad32e9928b6ffba6513a6aba367ae3d4f931f32a (diff) | |
download | mupdf-49f0bf36d071637c2d7ccfda307709e4f4fb66c8.tar.xz |
Manage linewidth state correctly when rendering text with stroking.
-rw-r--r-- | pdf/pdf_interpret.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index 87fbf359..1682f79a 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -1681,7 +1681,6 @@ static void pdf_run_TD(pdf_csi *csi) static void pdf_run_Tm(pdf_csi *csi) { - pdf_flush_text(csi); csi->tm.a = csi->stack[0]; csi->tm.b = csi->stack[1]; csi->tm.c = csi->stack[2]; @@ -1938,6 +1937,7 @@ static void pdf_run_v(pdf_csi *csi) static void pdf_run_w(pdf_csi *csi) { pdf_gstate *gstate = csi->gstate + csi->gtop; + pdf_flush_text(csi); /* linewidth affects stroked text rendering mode */ gstate->stroke_state.linewidth = csi->stack[0]; } |