summaryrefslogtreecommitdiff
path: root/source/fitz/draw-imp.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2013-09-30 15:53:54 +0100
committerRobin Watts <robin.watts@artifex.com>2013-09-30 17:21:42 +0100
commit9805dec32d8b7cb2fcc3251fdb670f5065e5f57e (patch)
treea516ea2bf8d2fb98421cf3dcb51a80ef1e69b6fa /source/fitz/draw-imp.h
parentdc371071308690a9dc84701fdb2cce6a01ba9338 (diff)
downloadmupdf-9805dec32d8b7cb2fcc3251fdb670f5065e5f57e.tar.xz
Bug 694526: Fix hang in stroking path.
The first file of this bug (hang-66.pdf) hangs while stroking a VERY long line segment; so long that 'used' is sufficinetly large that: used += dash_segment_len doesn't result in a change in the value of used. The fix is to clip strokes to the edge of the gel's clip area, meaning that this should never occur.
Diffstat (limited to 'source/fitz/draw-imp.h')
-rw-r--r--source/fitz/draw-imp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/draw-imp.h b/source/fitz/draw-imp.h
index b491d91a..82823519 100644
--- a/source/fitz/draw-imp.h
+++ b/source/fitz/draw-imp.h
@@ -14,6 +14,7 @@ void fz_sort_gel(fz_gel *gel);
fz_irect *fz_bound_gel(const fz_gel *gel, fz_irect *bbox);
void fz_free_gel(fz_gel *gel);
int fz_is_rect_gel(fz_gel *gel);
+fz_rect *fz_gel_scissor(const fz_gel *gel, fz_rect *rect);
void fz_scan_convert(fz_gel *gel, int eofill, const fz_irect *clip, fz_pixmap *pix, unsigned char *colorbv);