From 82d6f7850c3593077eee99c2d230ee0f712ac794 Mon Sep 17 00:00:00 2001 From: sumit Date: Tue, 9 Jun 2020 17:29:41 +0530 Subject: update end point for mid lines --- src/main/python/shapes/line.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/python') 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 -- cgit