summaryrefslogtreecommitdiff
path: root/src/main/python
diff options
context:
space:
mode:
authorsumit2020-06-03 05:32:55 +0530
committerBlaine2020-06-03 15:25:33 +0530
commitd8955687ae3a35a4cb40ee5deca43bc6f605d133 (patch)
tree70bd918cefaaa9b61d29475aa14870736ec72696 /src/main/python
parentfa77d7e77334d1df269564ee0919a7b917d00676 (diff)
downloadChemical-PFD-d8955687ae3a35a4cb40ee5deca43bc6f605d133.tar.gz
Chemical-PFD-d8955687ae3a35a4cb40ee5deca43bc6f605d133.tar.bz2
Chemical-PFD-d8955687ae3a35a4cb40ee5deca43bc6f605d133.zip
curve fix for line from right to left
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 c5d5b57..1a54284 100644
--- a/src/main/python/shapes/line.py
+++ b/src/main/python/shapes/line.py
@@ -226,9 +226,9 @@ class Line(QGraphicsPathItem):
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.lineTo(point + QPointF(8, 0))
+ path.arcTo(QRectF(x-8, y-8, 16, 16), 0, -180)
+ path.lineTo(point - QPointF(8, 0))
path.lineTo(self.points[i+1])
painter.drawPath(path)