mirror of https://github.com/openXC7/prjxray.git
Really fix find_origin_coordinate
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
ff56a96843
commit
f514e36c13
|
|
@ -191,9 +191,9 @@ def find_origin_coordinate(site_names):
|
|||
x_coords = []
|
||||
y_coords = []
|
||||
for site in site_names:
|
||||
x_coord, y_coord = get_site_coordinate_from_name(site)
|
||||
x_coords.append(x_coord)
|
||||
y_coords.append(y_coord)
|
||||
coordinate = get_site_coordinate_from_name(site)
|
||||
x_coords.append(coordinate.x_coord)
|
||||
y_coords.append(coordinate.y_coord)
|
||||
|
||||
if len(x_coords) == 0 or len(y_coords) == 0:
|
||||
return 0, 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue