From 9805dec32d8b7cb2fcc3251fdb670f5065e5f57e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 30 Sep 2013 15:53:54 +0100 Subject: 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. --- source/fitz/draw-imp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/fitz/draw-imp.h') 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); -- cgit v1.2.3