summaryrefslogtreecommitdiff
path: root/src/main/python/shapes/line.py
diff options
context:
space:
mode:
authorsumit2020-06-05 07:55:53 +0530
committersumit2020-06-05 07:55:53 +0530
commit80ab599d62b5cdad8893bb91053ada843dd38da7 (patch)
tree68ad1cb368fefa55ac0f979a79d2ef8ee09f5985 /src/main/python/shapes/line.py
parent4c2133fdff296922fe6fc1a03462d8258564bd82 (diff)
downloadChemical-PFD-80ab599d62b5cdad8893bb91053ada843dd38da7.tar.gz
Chemical-PFD-80ab599d62b5cdad8893bb91053ada843dd38da7.tar.bz2
Chemical-PFD-80ab599d62b5cdad8893bb91053ada843dd38da7.zip
Merge branch 'master' of https://github.com/Sumit-Sahu/Chemical-PFD
Diffstat (limited to 'src/main/python/shapes/line.py')
-rw-r--r--src/main/python/shapes/line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index 2d7eba8..f5eb92a 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -201,7 +201,7 @@ class Line(QGraphicsPathItem):
for i in range(len(self.points) - 1):
x1, y1 = self.points[i].x(), self.points[i].y()
x2, y2 = self.points[i+1].x(), self.points[i+1].y()
- for point in self.commonPaths.sort(key = lambda x: x.x() + x.y(), reverse=x2<x1 or y2<y1):
+ for point in sorted(self.commonPaths, key = lambda x: x.x() + x.y(), reverse=x2<x1 or y2<y1):
x, y = point.x(), point.y()
# if not x1 * (y - y2) + x * (y2 - y1) + x2 * (y1 - y) :
if x == x1 == x2: