small pattern and fix circle arc
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user