diff options
author | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-01-13 23:12:27 -0200 |
---|---|---|
committer | Paulo Henrique Silva <ph.silva@gmail.com> | 2015-01-13 23:12:27 -0200 |
commit | 53ee7566097b5a26cd3a1dab1d730f9606d767e6 (patch) | |
tree | b66b786e76ff7e55a465563b89be8a9d8e2e58f2 | |
parent | be5b94b8c09f647e5e19f795927060f75461c283 (diff) | |
download | gerbonara-53ee7566097b5a26cd3a1dab1d730f9606d767e6.tar.gz gerbonara-53ee7566097b5a26cd3a1dab1d730f9606d767e6.tar.bz2 gerbonara-53ee7566097b5a26cd3a1dab1d730f9606d767e6.zip |
Fix region primitive creation
-rw-r--r-- | gerber/rs274x.py | 2 |
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': |