diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-03-14 14:53:50 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-03-14 15:40:59 +0000 |
commit | 7f830398abb77dd7a0c63f38ad3f36002f7d1629 (patch) | |
tree | e54ce52e815239240476e8a892749d59288cb472 /fitz | |
parent | 4b7bda23eb56850385ac44654b6d33ae588f4562 (diff) | |
download | mupdf-7f830398abb77dd7a0c63f38ad3f36002f7d1629.tar.xz |
When bounding paths, only apply miterlimit when mitering.
From SumatraMuPDF.patch - Many thanks.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/res_path.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |