summaryrefslogtreecommitdiff
path: root/gerber/excellon.py
diff options
context:
space:
mode:
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())