grozin      14/05/14 11:25:57

  Added:                pyfeyn-0.3.4.patch
  Removed:              pyfeyn-0.3.3.patch
  Log:
  An upstream bugfix; cleaning old
  
  (Portage version: 2.2.10/cvs/Linux i686, signed Manifest commit with key 
0x3AFFCE974D34BD8C!)

Revision  Changes    Path
1.1                  dev-python/pyfeyn/files/pyfeyn-0.3.4.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyfeyn/files/pyfeyn-0.3.4.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyfeyn/files/pyfeyn-0.3.4.patch?rev=1.1&content-type=text/plain

Index: pyfeyn-0.3.4.patch
===================================================================
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))




Reply via email to