summaryrefslogtreecommitdiff
path: root/gerber/render/cairo_backend.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2015-12-16 18:59:25 +0800
committerGarret Fick <garret@ficksworkshop.com>2015-12-16 18:59:25 +0800
commit206f4c57ab66f8a6753015340315991b40178c9b (patch)
tree0b1a199270dac696193c8eaead7987f59c5f73b4 /gerber/render/cairo_backend.py
parent221f67d8fe77ecae6c8e99db767eace5da0c1f9e (diff)
downloadgerbonara-206f4c57ab66f8a6753015340315991b40178c9b.tar.gz
gerbonara-206f4c57ab66f8a6753015340315991b40178c9b.tar.bz2
gerbonara-206f4c57ab66f8a6753015340315991b40178c9b.zip
Fix drawing arcs. Dont crash for arcs with rectangular apertures. Fix crash with board size of zero for only one drill
Diffstat (limited to 'gerber/render/cairo_backend.py')
-rw-r--r--gerber/render/cairo_backend.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py
index 4a0724f..4d71199 100644
--- a/gerber/render/cairo_backend.py
+++ b/gerber/render/cairo_backend.py
@@ -87,6 +87,7 @@ class GerberCairoContext(GerberContext):
else:
self.ctx.arc_negative(center[0], center[1], radius, angle1, angle2)
self.ctx.move_to(*end) # ...lame
+ self.ctx.stroke()
def _render_region(self, region, color):
self.ctx.set_source_rgba(color[0], color[1], color[2], self.alpha)