small pattern and fix circle arc
All checks were successful
CI/CD / wol (push) Successful in 0s
CI/CD / build (push) Successful in 10m33s

This commit is contained in:
2025-09-01 21:13:04 +02:00
parent 7adb7ed34a
commit f26bd7bf2e
4 changed files with 123 additions and 80 deletions

View File

@@ -108,7 +108,10 @@ class ArcGraphicsItem(QGraphicsItem):
self.angle_start = angle_start
self.angle_end = angle_end
self.draw_angle_start = int(angle_start * 16)
self.draw_angle_end = int(angle_end * 16)
# must a more elegant way but it works
if angle_end == 0:
angle_end = 360
self.draw_angle_end = int(abs(angle_end-angle_start) * 16)
logging.debug(
"arc from %s:%s of %s from %s° to %s°",
self.x_pos,