summaryrefslogtreecommitdiff
path: root/render/renderpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/renderpath.c')
-rw-r--r--render/renderpath.c2
1 files changed, 1 insertions, 1 deletions
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)