From 80ab599d62b5cdad8893bb91053ada843dd38da7 Mon Sep 17 00:00:00 2001 From: sumit Date: Fri, 5 Jun 2020 07:55:53 +0530 Subject: Merge branch 'master' of https://github.com/Sumit-Sahu/Chemical-PFD --- src/main/python/shapes/line.py | 2 +- src/main/python/shapes/shapes.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main') 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