kopia lustrzana https://gitlab.com/gerbolyze/gerbonara
More robust writing, even for bad files. Remove accidentally added imports
rodzic
0f1d1c3a29
commit
97924d188b
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue