Fixed component save method.
The first value of the redundant position is the unit. Not always 1.
This commit is contained in:
parent
4b007938c1
commit
7cd0ccafa1
|
|
@ -1004,7 +1004,7 @@ class SchematicComponent(object):
|
|||
for field in self.fields:
|
||||
if field.number >= 0:
|
||||
field.write(f)
|
||||
f.write('\t1 {} {}\n'.format(self.x, self.y))
|
||||
f.write('\t{} {} {}\n'.format(self.unit, self.x, self.y))
|
||||
f.write('\t{} {} {} {}\n'.format(self.matrix[0], self.matrix[1], self.matrix[2], self.matrix[3]))
|
||||
f.write('$EndComp\n')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue