From 4ebd4ce6b9ac1c67a366160e5a1b4fbbf102baa6 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 10 Oct 2013 10:29:47 +0100 Subject: Use the 'rect' param to fz_clip_path. fz_clip_path takes a rect parameter, but all the callers of it use NULL. In most cases they have a perfectly reasonable value that they could pass to hand anyway. Update the code to pass this value, which saves the need for the scissor stack keeping code to recalculate it. --- source/xps/xps-path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/xps') diff --git a/source/xps/xps-path.c b/source/xps/xps-path.c index 371f52ab..30d40aff 100644 --- a/source/xps/xps-path.c +++ b/source/xps/xps-path.c @@ -1017,7 +1017,7 @@ xps_parse_path(xps_document *doc, const fz_matrix *ctm, char *base_uri, xps_reso if (fill_tag) { - fz_clip_path(doc->dev, path, NULL, fill_rule == 0, &local_ctm); + fz_clip_path(doc->dev, path, &area, fill_rule == 0, &local_ctm); xps_parse_brush(doc, &local_ctm, &area, fill_uri, dict, fill_tag); fz_pop_clip(doc->dev); } @@ -1035,7 +1035,7 @@ xps_parse_path(xps_document *doc, const fz_matrix *ctm, char *base_uri, xps_reso if (stroke_tag) { - fz_clip_stroke_path(doc->dev, stroke_path, NULL, stroke, &local_ctm); + fz_clip_stroke_path(doc->dev, stroke_path, &area, stroke, &local_ctm); xps_parse_brush(doc, &local_ctm, &area, stroke_uri, dict, stroke_tag); fz_pop_clip(doc->dev); } -- cgit v1.2.3