summaryrefslogtreecommitdiff
path: root/src/main/python/shapes
diff options
context:
space:
mode:
authorsumit2020-06-09 17:29:41 +0530
committersumit2020-06-09 17:29:41 +0530
commit82d6f7850c3593077eee99c2d230ee0f712ac794 (patch)
treef99d09416f9f3b74029d9a857262cd0ba78a4172 /src/main/python/shapes
parent66aa583326de0fd73317899d39e658e7d6985ccd (diff)
downloadChemical-PFD-82d6f7850c3593077eee99c2d230ee0f712ac794.tar.gz
Chemical-PFD-82d6f7850c3593077eee99c2d230ee0f712ac794.tar.bz2
Chemical-PFD-82d6f7850c3593077eee99c2d230ee0f712ac794.zip
update end point for mid lines
Diffstat (limited to 'src/main/python/shapes')
-rw-r--r--src/main/python/shapes/line.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index 41756f7..e2be7d9 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -739,6 +739,9 @@ class Line(QGraphicsPathItem):
self.points[len(self.points) - 2] = QPointF(point.x(), self.endPoint.y())
else:
self.points[len(self.points) - 2] = QPointF(self.endPoint.x(), point.y())
+
+ if self.refLine:
+ self.endPoint = self.points[len(self.points) - 1]
def shape(self):
"""generates outline for path