summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/python/shapes/line.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index 0e56009..92c5b1d 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -441,6 +441,8 @@ class Line(QGraphicsPathItem):
end = self.endPoint
sitem = self.startGripItem.mapRectToScene(self.startGripItem.m_annotation_item.boundingRect())
eitem= self.endGripItem.mapRectToScene(self.endGripItem.m_annotation_item.boundingRect())
+ if self.refLine:
+ eitem = self.endGripItem.mapRectToScene(QRectF(0,0,0,0))
if self.startGripItem.m_location in ["right"]:
if self.endGripItem.m_location in ["top"]: