summaryrefslogtreecommitdiff
path: root/gerbonara/gerber/render
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/gerber/render')
-rw-r--r--gerbonara/gerber/render/cairo_backend.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gerbonara/gerber/render/cairo_backend.py b/gerbonara/gerber/render/cairo_backend.py
index ff5e6cb..a7baf84 100644
--- a/gerbonara/gerber/render/cairo_backend.py
+++ b/gerbonara/gerber/render/cairo_backend.py
@@ -295,6 +295,10 @@ class GerberCairoContext(GerberContext):
radius = self.scale[0] * prim.radius
angle1 = prim.start_angle
angle2 = prim.end_angle
+
+ if angle1 == angle2:
+ # Make the angles slightly different otherwise Cario will draw nothing
+ angle2 -= 0.000000001
if prim.direction == 'counterclockwise':
mask.ctx.arc(center[0], center[1], radius,
angle1, angle2)