From e151d0a1d8e5d03e48f96a650210bc5942517f98 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 16 Apr 2013 15:54:51 +0100 Subject: Avoid expanding path for stroke twice. fz_bound_path already takes care of stroke expansion - don't apply it twice. --- fitz/dev_list.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fitz/dev_list.c b/fitz/dev_list.c index 6d3ab515..69542677 100644 --- a/fitz/dev_list.c +++ b/fitz/dev_list.c @@ -250,7 +250,6 @@ 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); } @@ -293,7 +292,6 @@ 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); -- cgit v1.2.3