summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gerber/primitives.py2
-rw-r--r--gerber/render/rs274x_backend.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/gerber/primitives.py b/gerber/primitives.py
index a5ed491..e5ff35f 100644
--- a/gerber/primitives.py
+++ b/gerber/primitives.py
@@ -18,8 +18,6 @@ import math
from operator import add, sub
from .utils import validate_coordinates, inch, metric, rotate_point, nearly_equal
-from jsonpickle.util import PRIMITIVES
-from __builtin__ import False
class Primitive(object):
diff --git a/gerber/render/rs274x_backend.py b/gerber/render/rs274x_backend.py
index 81e86f2..48a55e7 100644
--- a/gerber/render/rs274x_backend.py
+++ b/gerber/render/rs274x_backend.py
@@ -384,6 +384,9 @@ class Rs274xContext(GerberContext):
self.header.append(aperdef)
# Store the dcode and the original so we can check if it really is the same
+ # If it didn't have a postition, set it to 0, 0
+ if amgroup.position == None:
+ amgroup.position = (0, 0)
macro = (aperdef, amgroup)
if macroinfo: