From ed0cf2fa9201f4920a2bd66da8ca155f8684f084 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 23 Sep 2021 08:10:00 +0100 Subject: [PATCH] Typo --- Lib/fontTools/misc/bezierTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/misc/bezierTools.py b/Lib/fontTools/misc/bezierTools.py index 69e182fe1..bf7561de0 100644 --- a/Lib/fontTools/misc/bezierTools.py +++ b/Lib/fontTools/misc/bezierTools.py @@ -883,7 +883,7 @@ def _line_t_of_pt(s, e, pt): # Line is a point! return -1 # Use the largest - if abs(sx - ex) > abs(sy - ex): + if abs(sx - ex) > abs(sy - ey): return (px - sx) / (ex - sx) else: return (py - sy) / (ey - sy)