summaryrefslogtreecommitdiff
path: root/gerber/render/svgwrite_backend.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-26 22:35:56 -0400
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-10-26 22:36:47 -0400
commit0437e4198a0ff5d909d4321768341a173930904c (patch)
tree6f0959a0e5ccc9b101009f4f94f5d826d4500c10 /gerber/render/svgwrite_backend.py
parentc285e6b014f38716b257b6cc77245c37ac62b4f1 (diff)
downloadgerbonara-0437e4198a0ff5d909d4321768341a173930904c.tar.gz
gerbonara-0437e4198a0ff5d909d4321768341a173930904c.tar.bz2
gerbonara-0437e4198a0ff5d909d4321768341a173930904c.zip
cairo working
Diffstat (limited to 'gerber/render/svgwrite_backend.py')
-rw-r--r--gerber/render/svgwrite_backend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerber/render/svgwrite_backend.py b/gerber/render/svgwrite_backend.py
index d9456a5..2df87b3 100644
--- a/gerber/render/svgwrite_backend.py
+++ b/gerber/render/svgwrite_backend.py
@@ -148,8 +148,8 @@ class GerberSvgContext(GerberContext):
self.dwg.add(c2)
self.dwg.add(rect)
- def _render_drill(self, primitive, color):
- center = map(mul, primitive.position, self.scale)
- hit = self.dwg.circle(center=center, r=SCALE * primitive.radius,
+ def _render_drill(self, circle, color):
+ center = map(mul, circle.position, self.scale)
+ hit = self.dwg.circle(center=center, r=SCALE * circle.radius,
fill=svg_color(color))
self.dwg.add(hit)