diff options
Diffstat (limited to 'src/main/python/shapes/line.py')
-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 |