summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2011-03-01 22:40:14 +0000
committerTor Andersson <tor@ghostscript.com>2011-03-01 22:40:14 +0000
commita34132a9d9559d46077eebdb0dfc2b8395c9f119 (patch)
tree1f1c19381151e148164854379951e01a9dc876a7 /fitz
parent48fa19c8e1117ac556e277e0924833d124a5faea (diff)
downloadmupdf-a34132a9d9559d46077eebdb0dfc2b8395c9f119.tar.xz
Fix subtle path stroking bug where closepath did not update the pen position.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/dev_trace.c1
-rw-r--r--fitz/res_path.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/fitz/dev_trace.c b/fitz/dev_trace.c
index 84e590bf..50ba02f3 100644
--- a/fitz/dev_trace.c
+++ b/fitz/dev_trace.c
@@ -54,6 +54,7 @@ fz_tracepath(fz_path *path, int indent)
break;
case FZ_CLOSEPATH:
printf("<closepath />\n");
+ break;
}
}
}
diff --git a/fitz/res_path.c b/fitz/res_path.c
index 6c5f1802..ebfb3cdc 100644
--- a/fitz/res_path.c
+++ b/fitz/res_path.c
@@ -19,10 +19,8 @@ fz_clonepath(fz_path *old)
fz_path *path;
path = fz_malloc(sizeof(fz_path));
- memcpy(path, old, sizeof(fz_path));
-
path->len = old->len;
- path->cap = path->len;
+ path->cap = old->len;
path->els = fz_calloc(path->cap, sizeof(fz_pathel));
memcpy(path->els, old->els, sizeof(fz_pathel) * path->len);
@@ -207,6 +205,7 @@ fz_debugpath(fz_path *path, int indent)
break;
case FZ_CLOSEPATH:
printf("h\n");
+ break;
}
}
}