summaryrefslogtreecommitdiff
path: root/gerber
diff options
context:
space:
mode:
authorPaulo Henrique Silva <ph.silva@gmail.com>2015-01-13 23:12:27 -0200
committerPaulo Henrique Silva <ph.silva@gmail.com>2015-01-13 23:12:27 -0200
commit53ee7566097b5a26cd3a1dab1d730f9606d767e6 (patch)
treeb66b786e76ff7e55a465563b89be8a9d8e2e58f2 /gerber
parentbe5b94b8c09f647e5e19f795927060f75461c283 (diff)
downloadgerbonara-53ee7566097b5a26cd3a1dab1d730f9606d767e6.tar.gz
gerbonara-53ee7566097b5a26cd3a1dab1d730f9606d767e6.tar.bz2
gerbonara-53ee7566097b5a26cd3a1dab1d730f9606d767e6.zip
Fix region primitive creation
Diffstat (limited to 'gerber')
-rw-r--r--gerber/rs274x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 8f4a171..3ec7429 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -376,7 +376,7 @@ class GerberParser(object):
def _evaluate_mode(self, stmt):
if stmt.type == 'RegionMode':
if self.region_mode == 'on' and stmt.mode == 'off':
- self.primitives.append(Region(self.current_region, self.level_polarity))
+ self.primitives.append(Region(self.current_region, level_polarity=self.level_polarity))
self.current_region = None
self.region_mode = stmt.mode
elif stmt.type == 'QuadrantMode':