summaryrefslogtreecommitdiff
path: root/gerber/primitives.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-02-27 18:18:04 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-02-27 18:18:04 +0800
commit223a010831f0d9dae4bd6d2e626a603a78eb0b1d (patch)
treef8e341156d652990b79f182df65c321549222e74 /gerber/primitives.py
parent29c0d82bf53907030d11df9eb09471b716a0be2e (diff)
downloadgerbonara-223a010831f0d9dae4bd6d2e626a603a78eb0b1d.tar.gz
gerbonara-223a010831f0d9dae4bd6d2e626a603a78eb0b1d.tar.bz2
gerbonara-223a010831f0d9dae4bd6d2e626a603a78eb0b1d.zip
Fix critical issue with rotatin points (when the angle is zero the y would be flipped). Render AM with outline to gerber
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 21efb55..07a28db 100644
--- a/gerber/primitives.py
+++ b/gerber/primitives.py
@@ -779,7 +779,7 @@ class AMGroup(Primitive):
if self._position:
dx = new_pos[0] - self._position[0]
- dy = new_pos[0] - self._position[0]
+ dy = new_pos[1] - self._position[1]
else:
dx = new_pos[0]
dy = new_pos[1]