summaryrefslogtreecommitdiff
path: root/gerber/primitives.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-06-19 12:06:19 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-06-19 12:06:19 +0800
commit265aec83f6152387514eea75ee60241d55f702fd (patch)
tree8b3be58ef33e3a41f618e0d39336ce4add36c853 /gerber/primitives.py
parent8f4b439efcc4dccd327a8fb95ce3bbb6d16adbcf (diff)
downloadgerbonara-265aec83f6152387514eea75ee60241d55f702fd.tar.gz
gerbonara-265aec83f6152387514eea75ee60241d55f702fd.tar.bz2
gerbonara-265aec83f6152387514eea75ee60241d55f702fd.zip
Offsetting amgroup was doubly offseting
Diffstat (limited to 'gerber/primitives.py')
-rw-r--r--gerber/primitives.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gerber/primitives.py b/gerber/primitives.py
index a5c3055..aa6e661 100644
--- a/gerber/primitives.py
+++ b/gerber/primitives.py
@@ -835,7 +835,7 @@ class AMGroup(Primitive):
return self._position
def offset(self, x_offset=0, y_offset=0):
- self.position = tuple(map(add, self.position, (x_offset, y_offset)))
+ self._position = tuple(map(add, self._position, (x_offset, y_offset)))
for primitive in self.primitives:
primitive.offset(x_offset, y_offset)