summaryrefslogtreecommitdiff
path: root/src/main/python
diff options
context:
space:
mode:
authorBlaine2020-06-02 23:24:34 +0530
committerBlaine2020-06-02 23:24:34 +0530
commitb24e45566f0e627e3a87ec6e30109f4a061fa838 (patch)
tree3c0b50e9850fc5fbc00aafa01d90a633b42333f0 /src/main/python
parentab89c224340e9341bfcb79f125c10b6d2d757077 (diff)
downloadChemical-PFD-b24e45566f0e627e3a87ec6e30109f4a061fa838.tar.gz
Chemical-PFD-b24e45566f0e627e3a87ec6e30109f4a061fa838.tar.bz2
Chemical-PFD-b24e45566f0e627e3a87ec6e30109f4a061fa838.zip
minor typo
Diffstat (limited to 'src/main/python')
-rw-r--r--src/main/python/shapes/line.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/python/shapes/line.py b/src/main/python/shapes/line.py
index 1c30cd9..5ad61a7 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -210,8 +210,7 @@ class Line(QGraphicsPathItem):
if x == x1 == x2:
#vertical
if min(y1, y2) <= y < max(y1, y2):
- bool = y2>y1
- if bool:
+ if y2>y1:
path.lineTo(point - QPointF(0, 8))
path.arcTo(QRectF(x-8, y-8, 16, 16), 90, -180)
path.moveTo(point + QPointF(0, 8))
@@ -222,14 +221,13 @@ class Line(QGraphicsPathItem):
elif y == y1 == y2:
#horizontal
if min(x1, x2) <= x < max(x1, x2):
- bool = x2>x1
- if bool:
+ if x2>x1:
path.lineTo(point - QPointF(8, 0))
path.arcTo(QRectF(x-8, y-8, 16, 16), 180, 180)
path.moveTo(point + QPointF(8, 0))
else:
path.lineTo(point - QPointF(8, 0))
- path.arcTo(QRectF(x-8, y-8, 16, 16), 0, -180)
+ path.arcTo(QRectF(x-8, y-8, 16, 16), 0, 180)
path.lineTo(point - QPointF(8, 0))
path.lineTo(self.points[i+1])