Fixed component save method.

The first value of the redundant position is the unit.
Not always 1.
This commit is contained in:
Salvador E. Tropea 2020-09-01 16:48:43 -03:00
parent 4b007938c1
commit 7cd0ccafa1
1 changed files with 1 additions and 1 deletions

View File

@ -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')