From 39d3ba713f73e4aff7fab13b06fc468e35a82414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20R=C3=BCth?= Date: Mon, 27 Sep 2021 03:22:09 +0200 Subject: [PATCH] Fix implementation of points() (#155) fix incorrect implementation of `points` method --- svgpathtools/path.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/svgpathtools/path.py b/svgpathtools/path.py index 67164f4..47512c1 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -637,7 +637,7 @@ class Line(object): def points(self, ts): """Faster than running Path.point many times.""" - return self.poly(ts) + return self.poly()(ts) def length(self, t0=0, t1=1, error=None, min_depth=None): """returns the length of the line segment between t0 and t1.""" @@ -914,7 +914,7 @@ class QuadraticBezier(object): def points(self, ts): """Faster than running Path.point many times.""" - return self.poly(ts) + return self.poly()(ts) def length(self, t0=0, t1=1, error=None, min_depth=None): if t0 == 1 and t1 == 0: @@ -1178,7 +1178,7 @@ class CubicBezier(object): def points(self, ts): """Faster than running Path.point many times.""" - return self.poly(ts) + return self.poly()(ts) def length(self, t0=0, t1=1, error=LENGTH_ERROR, min_depth=LENGTH_MIN_DEPTH): """Calculate the length of the path up to a certain position"""