diff options
author | sumit | 2020-06-10 10:38:55 +0530 |
---|---|---|
committer | sumit | 2020-06-10 10:38:55 +0530 |
commit | 0d09cb1bf30e2370b0a160375dad0e7c926b9515 (patch) | |
tree | c935128e1212c4a264689f44d841c97eaf8257b6 /src/main/python/shapes | |
parent | bb2319bfa22adf49acaf0123ea9589fab5c8469a (diff) | |
download | Chemical-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.py | 2 |
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"]: |