summaryrefslogtreecommitdiff
path: root/fitz/res_path.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2010-07-31 16:44:22 +0000
committerSebastian Rasmussen <sebras@hotmail.com>2010-07-31 16:44:22 +0000
commit1504778a47c8cd588619e45ef99ec0396d421d65 (patch)
treedc113b2318a3ae3375ec85c91e2aaa654152cbc6 /fitz/res_path.c
parentf61ef818906a381075c3cafca1f42c4a39cea2c8 (diff)
downloadmupdf-1504778a47c8cd588619e45ef99ec0396d421d65.tar.xz
Include all three bezier controlpoints when bounding curves in a path.
Diffstat (limited to 'fitz/res_path.c')
-rw-r--r--fitz/res_path.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fitz/res_path.c b/fitz/res_path.c
index b7129bcc..0fc1882e 100644
--- a/fitz/res_path.c
+++ b/fitz/res_path.c
@@ -143,6 +143,9 @@ fz_boundpath(fz_path *path, fz_strokestate *stroke, fz_matrix ctm)
p.x = path->els[i++].v;
p.y = path->els[i++].v;
r = boundexpand(r, fz_transformpoint(ctm, p));
+ p.x = path->els[i++].v;
+ p.y = path->els[i++].v;
+ r = boundexpand(r, fz_transformpoint(ctm, p));
break;
case FZ_MOVETO:
case FZ_LINETO: