Handle 85 statements that omit one value
This commit is contained in:
parent
ea97d9d037
commit
fca36a29b9
1 changed files with 5 additions and 0 deletions
|
|
@ -856,6 +856,11 @@ class SlotStmt(ExcellonStatement):
|
|||
(x_start_coord, y_start_coord) = SlotStmt.parse_sub_coords(sub_coords[0], settings)
|
||||
(x_end_coord, y_end_coord) = SlotStmt.parse_sub_coords(sub_coords[1], settings)
|
||||
|
||||
# Some files seem to specify only one of the coordinates
|
||||
if x_end_coord == None:
|
||||
x_end_coord = x_start_coord
|
||||
if y_end_coord == None:
|
||||
y_end_coord = y_start_coord
|
||||
|
||||
c = cls(x_start_coord, y_start_coord, x_end_coord, y_end_coord, **kwargs)
|
||||
c.units = settings.units
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue