summaryrefslogtreecommitdiff
path: root/src/main/python/shapes
diff options
context:
space:
mode:
authorsumit2020-06-10 10:38:55 +0530
committersumit2020-06-10 10:38:55 +0530
commit0d09cb1bf30e2370b0a160375dad0e7c926b9515 (patch)
treec935128e1212c4a264689f44d841c97eaf8257b6 /src/main/python/shapes
parentbb2319bfa22adf49acaf0123ea9589fab5c8469a (diff)
downloadChemical-PFD-0d09cb1bf30e2370b0a160375dad0e7c926b9515.tar.gz
Chemical-PFD-0d09cb1bf30e2370b0a160375dad0e7c926b9515.tar.bz2
Chemical-PFD-0d09cb1bf30e2370b0a160375dad0e7c926b9515.zip
fix line path if line end to other line
Diffstat (limited to 'src/main/python/shapes')
-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"]: