summaryrefslogtreecommitdiff
path: root/gerber/render/svgwrite_backend.py
diff options
context:
space:
mode:
authorHamilton Kibbe <ham@hamiltonkib.be>2015-02-20 10:07:26 -0500
committerHamilton Kibbe <ham@hamiltonkib.be>2015-02-20 10:07:26 -0500
commitd830375c4c33e6a863e02c9f767c127841a070f7 (patch)
tree18aebb3317acf4f62270c345309ee2531c012caa /gerber/render/svgwrite_backend.py
parentb3e816466c9cd514854efd42803cb4258e4956b2 (diff)
downloadgerbonara-d830375c4c33e6a863e02c9f767c127841a070f7.tar.gz
gerbonara-d830375c4c33e6a863e02c9f767c127841a070f7.tar.bz2
gerbonara-d830375c4c33e6a863e02c9f767c127841a070f7.zip
Fix arc width per comment in #12
Diffstat (limited to 'gerber/render/svgwrite_backend.py')
-rw-r--r--gerber/render/svgwrite_backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/render/svgwrite_backend.py b/gerber/render/svgwrite_backend.py
index ae7c377..a88abfe 100644
--- a/gerber/render/svgwrite_backend.py
+++ b/gerber/render/svgwrite_backend.py
@@ -81,7 +81,7 @@ class GerberSvgContext(GerberContext):
start = tuple(map(mul, arc.start, self.scale))
end = tuple(map(mul, arc.end, self.scale))
radius = SCALE * arc.radius
- width = arc.width if arc.width != 0 else 0.001
+ width = arc.aperture.diameter if arc.aperture.diameter != 0 else 0.001
arc_path = self.dwg.path(d='M %f, %f' % start,
stroke=svg_color(color),
stroke_width=SCALE * width)