summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf/pdf_interpret.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c
index 21039f8c..85901539 100644
--- a/pdf/pdf_interpret.c
+++ b/pdf/pdf_interpret.c
@@ -262,15 +262,15 @@ pdf_show_path(pdf_csi *csi, int doclose, int dofill, int dostroke, int even_odd)
else
bbox = fz_bound_path(path, NULL, gstate->ctm);
- if (dofill || dostroke)
- pdf_begin_group(csi, bbox);
-
if (csi->clip)
{
gstate->clip_depth++;
fz_clip_path(csi->dev, path, NULL, csi->clip_even_odd, gstate->ctm);
}
+ if (dofill || dostroke)
+ pdf_begin_group(csi, bbox);
+
if (dofill)
{
switch (gstate->fill.kind)