diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-06-19 12:06:19 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-06-19 12:06:19 +0800 |
commit | 265aec83f6152387514eea75ee60241d55f702fd (patch) | |
tree | 8b3be58ef33e3a41f618e0d39336ce4add36c853 /gerber/primitives.py | |
parent | 8f4b439efcc4dccd327a8fb95ce3bbb6d16adbcf (diff) | |
download | gerbonara-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.py | 2 |
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)
|