diff options
author | Hamilton Kibbe <ham@hamiltonkib.be> | 2015-02-20 10:07:26 -0500 |
---|---|---|
committer | Hamilton Kibbe <ham@hamiltonkib.be> | 2015-02-20 10:07:26 -0500 |
commit | d830375c4c33e6a863e02c9f767c127841a070f7 (patch) | |
tree | 18aebb3317acf4f62270c345309ee2531c012caa /gerber/render/cairo_backend.py | |
parent | b3e816466c9cd514854efd42803cb4258e4956b2 (diff) | |
download | gerbonara-d830375c4c33e6a863e02c9f767c127841a070f7.tar.gz gerbonara-d830375c4c33e6a863e02c9f767c127841a070f7.tar.bz2 gerbonara-d830375c4c33e6a863e02c9f767c127841a070f7.zip |
Fix arc width per comment in #12
Diffstat (limited to 'gerber/render/cairo_backend.py')
-rw-r--r-- | gerber/render/cairo_backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py index f79dfbe..326f44e 100644 --- a/gerber/render/cairo_backend.py +++ b/gerber/render/cairo_backend.py @@ -83,7 +83,7 @@ class GerberCairoContext(GerberContext): radius = SCALE * arc.radius
angle1 = arc.start_angle
angle2 = arc.end_angle
- width = arc.width if arc.width != 0 else 0.001
+ width = arc.aperture.diameter if arc.aperture.diameter != 0 else 0.001
self.ctx.set_source_rgba(*color, alpha=self.alpha)
self.ctx.set_line_width(width * SCALE)
self.ctx.set_line_cap(cairo.LINE_CAP_ROUND)
|