diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-03-25 16:06:05 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-03-25 16:06:05 +0000 |
commit | 41ba11407eddb7b9497801bbca52c2ad90a11fb7 (patch) | |
tree | d618a341903e0bc30a6555c2402a7e1fd1c6db9b /fitz | |
parent | c17efed8d998461533be4dcd5bd22f3b1e90eeff (diff) | |
download | mupdf-41ba11407eddb7b9497801bbca52c2ad90a11fb7.tar.xz |
Fix device node bboxes for stroked paths.
When we calculate the bbox to store in display list nodes, we had been
forgetting to allow for the stroke state.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/dev_list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/dev_list.c b/fitz/dev_list.c index 69542677..6d3ab515 100644 --- a/fitz/dev_list.c +++ b/fitz/dev_list.c @@ -250,6 +250,7 @@ fz_list_stroke_path(fz_device *dev, fz_path *path, fz_stroke_state *stroke, fz_try(ctx) { fz_bound_path(dev->ctx, path, stroke, ctm, &node->rect); + fz_adjust_rect_for_stroke(&node->rect, stroke, ctm); node->item.path = fz_clone_path(dev->ctx, path); node->stroke = fz_keep_stroke_state(dev->ctx, stroke); } @@ -292,6 +293,7 @@ fz_list_clip_stroke_path(fz_device *dev, fz_path *path, const fz_rect *rect, fz_ fz_try(ctx) { fz_bound_path(dev->ctx, path, stroke, ctm, &node->rect); + fz_adjust_rect_for_stroke(&node->rect, stroke, ctm); if (rect) fz_intersect_rect(&node->rect, rect); node->item.path = fz_clone_path(dev->ctx, path); |