Skip to content

Commit

Permalink
Fix angle for absolute vertical lines
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Nov 23, 2020
1 parent 43fb05c commit 6b4f2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairosvg/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def path(surface, node):
# Vertical line
y, string = (string + ' ').split(' ', 1)
old_x, old_y = current_point
angle = pi / 2 if size(surface, y, 'y') > 0 else -pi / 2
angle = pi / 2 if size(surface, y, 'y') > old_y else -pi / 2
node.vertices.append((-angle, angle))
y = size(surface, y, 'y')
surface.context.line_to(old_x, y)
Expand Down

0 comments on commit 6b4f2ba

Please sign in to comment.