diff options
Diffstat (limited to 'dev-python/pyfeyn/files/pyfeyn-0.3.4.patch')
-rw-r--r-- | dev-python/pyfeyn/files/pyfeyn-0.3.4.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-python/pyfeyn/files/pyfeyn-0.3.4.patch b/dev-python/pyfeyn/files/pyfeyn-0.3.4.patch new file mode 100644 index 00000000000..0017bdd8166 --- /dev/null +++ b/dev-python/pyfeyn/files/pyfeyn-0.3.4.patch @@ -0,0 +1,16 @@ +diff -r -U2 pyfeyn-0.3.4.orig/pyfeyn/lines.py pyfeyn-0.3.4/pyfeyn/lines.py +--- pyfeyn-0.3.4.orig/pyfeyn/lines.py 2014-03-06 23:12:24.000000000 +0700 ++++ pyfeyn-0.3.4/pyfeyn/lines.py 2014-05-14 21:45:49.356935407 +0700 +@@ -117,8 +117,12 @@ + """Make this line a straight line between start and end.""" + self.arcthrupoint = None ++ return self + + + def bend(self, amount): + """Bend the line to the right by a given distance.""" ++ if amount==0: ++ self.arcthrupoint = None ++ return self + middle = self.p1.midpoint(self.p2) + nx = (middle.y() - self.p1.y()) / abs(self.p1.distance(middle)) |