From 7f830398abb77dd7a0c63f38ad3f36002f7d1629 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 14 Mar 2012 14:53:50 +0000 Subject: When bounding paths, only apply miterlimit when mitering. From SumatraMuPDF.patch - Many thanks. --- fitz/res_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fitz') diff --git a/fitz/res_path.c b/fitz/res_path.c index feb32e92..fed1504a 100644 --- a/fitz/res_path.c +++ b/fitz/res_path.c @@ -279,7 +279,7 @@ fz_bound_path(fz_context *ctx, fz_path *path, fz_stroke_state *stroke, fz_matrix if (expand == 0) expand = 1.0f; expand *= fz_matrix_max_expansion(ctm); - if (stroke->miterlimit > 1) + if ((stroke->linejoin == FZ_LINEJOIN_MITER || stroke->linejoin == FZ_LINEJOIN_MITER_XPS) && stroke->miterlimit > 1) expand *= stroke->miterlimit; r.x0 -= expand; r.y0 -= expand; -- cgit v1.2.3