summaryrefslogtreecommitdiff
path: root/src/main/python/shapes
diff options
context:
space:
mode:
authorsumit2020-06-10 18:15:37 +0530
committersumit2020-06-10 19:29:16 +0530
commite14943a27262aeb44751f47bbc5d0e5d5fbd9a2a (patch)
tree605e3b6740eb0ca1a4ccc6ec06ce659e22f6c129 /src/main/python/shapes
parentfd3ff2c037805a6539a9044bd9d26c3400768be8 (diff)
downloadChemical-PFD-e14943a27262aeb44751f47bbc5d0e5d5fbd9a2a.tar.gz
Chemical-PFD-e14943a27262aeb44751f47bbc5d0e5d5fbd9a2a.tar.bz2
Chemical-PFD-e14943a27262aeb44751f47bbc5d0e5d5fbd9a2a.zip
fix draw problem of arrow
Diffstat (limited to 'src/main/python/shapes')
-rw-r--r--src/main/python/shapes/line.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index 466e22b..28e63db 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -329,6 +329,11 @@ class Line(QGraphicsPathItem):
self.midLines = []
self.label = []
+ def boundingRect(self):
+ rect = self.shape().boundingRect()
+ rect.adjust(-10,-10,10,10)
+ return rect
+
def advance(self, phase):
if not phase:
return