summaryrefslogtreecommitdiff
path: root/gerber/am_statements.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-08-06 09:51:58 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-08-06 09:51:58 +0800
commit8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410 (patch)
tree8415fede2e664716a5b3a09fbb4c09baca78bcf8 /gerber/am_statements.py
parent8cd842a41a55ab3d8f558a2e3e198beba7da58a1 (diff)
downloadgerbonara-8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410.tar.gz
gerbonara-8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410.tar.bz2
gerbonara-8d5e782ccf220d77f0aad5a4e5605dc5cbe0f410.zip
Fix multiple problems with the merge. There are still errors, but I will intentionally leave them because future merges might resolve them
Diffstat (limited to 'gerber/am_statements.py')
-rw-r--r--gerber/am_statements.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gerber/am_statements.py b/gerber/am_statements.py
index 248542d..9c09085 100644
--- a/gerber/am_statements.py
+++ b/gerber/am_statements.py
@@ -1015,11 +1015,10 @@ class AMLowerLeftLinePrimitive(AMPrimitive):
def to_primitive(self, units):
# TODO I think I have merged this wrong
# Offset the primitive from macro position
- position = tuple([a + b for a , b in zip (position, self.lower_left)])
position = tuple([pos + offset for pos, offset in
- zip(position, (self.width/2, self.height/2))])
+ zip(self.lower_left, (self.width/2, self.height/2))])
# Return a renderable primitive
- return Rectangle(self.position, self.width, self.height,
+ return Rectangle(position, self.width, self.height,
level_polarity=self._level_polarity, units=units)
def to_gerber(self, settings=None):