diff options
author | sumit | 2020-06-09 17:29:41 +0530 |
---|---|---|
committer | sumit | 2020-06-09 17:29:41 +0530 |
commit | 82d6f7850c3593077eee99c2d230ee0f712ac794 (patch) | |
tree | f99d09416f9f3b74029d9a857262cd0ba78a4172 | |
parent | 66aa583326de0fd73317899d39e658e7d6985ccd (diff) | |
download | Chemical-PFD-82d6f7850c3593077eee99c2d230ee0f712ac794.tar.gz Chemical-PFD-82d6f7850c3593077eee99c2d230ee0f712ac794.tar.bz2 Chemical-PFD-82d6f7850c3593077eee99c2d230ee0f712ac794.zip |
update end point for mid lines
-rw-r--r-- | src/main/python/shapes/line.py | 3 |
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 |