From 49f0bf36d071637c2d7ccfda307709e4f4fb66c8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 1 Sep 2011 22:16:44 +0200 Subject: Manage linewidth state correctly when rendering text with stroking. --- pdf/pdf_interpret.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- cgit v1.2.3