summaryrefslogtreecommitdiff
path: root/dev-python/pyfeyn/files/pyfeyn-0.3.4.patch
blob: 0017bdd816616e430fb9314237cc5bd511aae5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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))