Skip to content

Commit

Permalink
Fix border-radius drawing
Browse files Browse the repository at this point in the history
Fix #360.
  • Loading branch information
liZe committed Oct 24, 2017
1 parent 89f008e commit 526bbd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weasyprint/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ def rounded_box_path(context, radii):
return

context.move_to(x, y)
context.new_sub_path()
for i, (w, h, (rx, ry)) in enumerate((
(0, 0, tl), (w, 0, tr), (w, h, br), (0, h, bl))):
context.save()
Expand Down

0 comments on commit 526bbd2

Please sign in to comment.