summaryrefslogtreecommitdiff
path: root/gerber/excellon.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-15 03:29:47 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-15 03:29:47 -0500
commitbfe14841604b6be403e7123e8b6667b1f0aff6f6 (patch)
treef33b8808412932c8606e63c9a11dcd4e60b919a9 /gerber/excellon.py
parent5cf1fa74b42eb8feaab23078bef6f31f6d647c33 (diff)
downloadgerbonara-bfe14841604b6be403e7123e8b6667b1f0aff6f6.tar.gz
gerbonara-bfe14841604b6be403e7123e8b6667b1f0aff6f6.tar.bz2
gerbonara-bfe14841604b6be403e7123e8b6667b1f0aff6f6.zip
Add cairo example code, and use example-generated image in readme
Diffstat (limited to 'gerber/excellon.py')
-rwxr-xr-xgerber/excellon.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gerber/excellon.py b/gerber/excellon.py
index 87eaf03..a7f3a27 100755
--- a/gerber/excellon.py
+++ b/gerber/excellon.py
@@ -265,6 +265,11 @@ class ExcellonParser(object):
elif line[0] == 'R' and self.state != 'HEADER':
stmt = RepeatHoleStmt.from_excellon(line, self._settings())
self.statements.append(stmt)
+ for i in xrange(stmt.count):
+ self.pos[0] += stmt.xdelta
+ self.pos[1] += stmt.ydelta
+ self.hits.append((self.active_tool, tuple(self.pos)))
+ self.active_tool._hit()
elif line[0] in ['X', 'Y']:
stmt = CoordinateStmt.from_excellon(line, self._settings())