diff options
-rw-r--r-- | source/pdf/pdf-interpret.c | 6 | ||||
-rw-r--r-- | source/xps/xps-path.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index 3790578f..d7e3a021 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -558,7 +558,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd) if (csi->clip) { gstate->clip_depth++; - fz_clip_path(csi->dev, path, NULL, csi->clip_even_odd, &gstate->ctm); + fz_clip_path(csi->dev, path, &bbox, csi->clip_even_odd, &gstate->ctm); csi->clip = 0; } @@ -581,7 +581,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd) case PDF_MAT_PATTERN: if (gstate->fill.pattern) { - fz_clip_path(csi->dev, path, NULL, even_odd, &gstate->ctm); + fz_clip_path(csi->dev, path, &bbox, even_odd, &gstate->ctm); pdf_show_pattern(csi, gstate->fill.pattern, &csi->gstate[gstate->fill.gstate_num], &bbox, PDF_FILL); fz_pop_clip(csi->dev); } @@ -589,7 +589,7 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd) case PDF_MAT_SHADE: if (gstate->fill.shade) { - fz_clip_path(csi->dev, path, NULL, even_odd, &gstate->ctm); + fz_clip_path(csi->dev, path, &bbox, even_odd, &gstate->ctm); /* The cluster and page 2 of patterns.pdf shows that fz_fill_shade should NOT be called with gstate->ctm. */ fz_fill_shade(csi->dev, gstate->fill.shade, &csi->gstate[gstate->fill.gstate_num].ctm, gstate->fill.alpha); fz_pop_clip(csi->dev); 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); } |