diff options
author | sumit | 2020-06-10 18:15:37 +0530 |
---|---|---|
committer | sumit | 2020-06-10 18:15:37 +0530 |
commit | bf0d0acaf8b488ae5a55536343401fc2a0b5f9de (patch) | |
tree | a87ba93c367b90cd3e7d8a1da936eb93d1c0fd21 /src/main/python/shapes/line.py | |
parent | 299b592c082454967dff54926d40151c2db595ad (diff) | |
download | Chemical-PFD-bf0d0acaf8b488ae5a55536343401fc2a0b5f9de.tar.gz Chemical-PFD-bf0d0acaf8b488ae5a55536343401fc2a0b5f9de.tar.bz2 Chemical-PFD-bf0d0acaf8b488ae5a55536343401fc2a0b5f9de.zip |
fix draw problem of arrow
Diffstat (limited to 'src/main/python/shapes/line.py')
-rw-r--r-- | src/main/python/shapes/line.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py index fe2b366..0453426 100644 --- a/src/main/python/shapes/line.py +++ b/src/main/python/shapes/line.py @@ -319,6 +319,11 @@ class Line(QGraphicsPathItem): self.label = [] self.arrowFlag = True + def boundingRect(self): + rect = self.shape().boundingRect() + rect.adjust(-10,-10,10,10) + return rect + def advance(self, phase): if not phase: return |