diff options
author | sumit | 2020-06-03 05:32:55 +0530 |
---|---|---|
committer | sumit | 2020-06-03 05:32:55 +0530 |
commit | ab3e2c1eb31473ed651b6ab4535fcb8bd64504c6 (patch) | |
tree | b4797958635367240e01f711b99220319f8a2769 /src/main | |
parent | 53f4698ef5e5c7f7c388c73b9a657e1a4cf44497 (diff) | |
download | Chemical-PFD-ab3e2c1eb31473ed651b6ab4535fcb8bd64504c6.tar.gz Chemical-PFD-ab3e2c1eb31473ed651b6ab4535fcb8bd64504c6.tar.bz2 Chemical-PFD-ab3e2c1eb31473ed651b6ab4535fcb8bd64504c6.zip |
curve fix for line from right to left
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/python/shapes/line.py | 4 |
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) |