Skip to content

Commit

Permalink
Minor modification to make KicadFileHandler._serialize_LinePoints()
Browse files Browse the repository at this point in the history
support rotations
  • Loading branch information
Caleb Reister committed Jul 18, 2019
1 parent ea323ad commit e7fe7ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KicadModTree/KicadFileHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ def _serialize_Circle(self, node):
return sexpr

def _serialize_LinePoints(self, node):
start_pos = node.getRealPosition(node.start_pos)
end_pos = node.getRealPosition(node.end_pos)
start_pos = node.getRealPosition(node.start_pos, 0)[0]
end_pos = node.getRealPosition(node.end_pos, 0)[0]
return [
['start', start_pos.x, start_pos.y],
['end', end_pos.x, end_pos.y]
Expand Down

0 comments on commit e7fe7ec

Please sign in to comment.