Skip to content

Commit

Permalink
fixed bug in download dxf
Browse files Browse the repository at this point in the history
  • Loading branch information
andywar65 committed Dec 1, 2022
1 parent 10caa70 commit 1e9a14a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,10 @@ def get_file_to_download(self):
# add insertions
for drw_layer in drw_layers:
for insert in drw_layer.insertions.all():
point = latlong2xy(insert.point["coordinates"], longp, latp)
point = latlong2xy([insert.point["coordinates"]], longp, latp)
msp.add_blockref(
insert.block.name,
point,
point[0],
dxfattribs={
"xscale": insert.x_scale,
"yscale": insert.y_scale,
Expand Down

0 comments on commit 1e9a14a

Please sign in to comment.