From 1be84ed1d4fbe44387222995a124a4f84ee55210 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 11 Nov 2004 07:52:33 +0100 Subject: fitz tree resource reference counting --- render/renderpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/renderpath.c') diff --git a/render/renderpath.c b/render/renderpath.c index a83505f9..498c3a63 100644 --- a/render/renderpath.c +++ b/render/renderpath.c @@ -5,7 +5,7 @@ enum { HS = 17, VS = 15, SF = 1 }; static fz_error *pathtogel(fz_gel *gel, fz_pathnode *path, fz_matrix ctm) { - float flatness = 0.3 / ctm.a; + float flatness = 0.3 / sqrt(fabs(ctm.a * ctm.d - ctm.b * ctm.c)); if (flatness < 0.1) flatness = 0.1; if (path->paint == FZ_STROKE) -- cgit v1.2.3