summaryrefslogtreecommitdiff
path: root/src/main/python
diff options
context:
space:
mode:
authorsumit2020-06-09 14:18:20 +0530
committersumit2020-06-09 14:18:20 +0530
commit66aa583326de0fd73317899d39e658e7d6985ccd (patch)
treeb3457b2d7b51e6f3d8930d659a775a4958db6e1b /src/main/python
parent181f050b352560fa5dbbbcf4888db2ccd7a37061 (diff)
downloadChemical-PFD-66aa583326de0fd73317899d39e658e7d6985ccd.tar.gz
Chemical-PFD-66aa583326de0fd73317899d39e658e7d6985ccd.tar.bz2
Chemical-PFD-66aa583326de0fd73317899d39e658e7d6985ccd.zip
fix shape of line grabber
Diffstat (limited to 'src/main/python')
-rw-r--r--src/main/python/shapes/line.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index b798dff..41756f7 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -77,8 +77,8 @@ class Grabber(QGraphicsPathItem):
def shape(self):
"""Overrides shape method and set shape to segment on which grabber is located"""
index = self.m_index
- startPoint = QPointF(self.m_annotation_item.path().elementAt(index))
- endPoint = QPointF(self.m_annotation_item.path().elementAt(index + 1))
+ startPoint = QPointF(self.parentItem().points[index])
+ endPoint = QPointF(self.parentItem().points[index+1])
startPoint = self.mapFromParent(startPoint)
endPoint = self.mapFromParent(endPoint)
path = QPainterPath(startPoint)