Skip to content

Commit

Permalink
Fix SVG transform order
Browse files Browse the repository at this point in the history
Fix #1369.
  • Loading branch information
liZe committed May 31, 2021
1 parent b24198d commit 6dde6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/svg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ def draw_node(self, node, font_size):
self.stream = self.stream.add_transparency_group(coords)

# Apply transformations
self.transform(node.get('transform'), font_size)
x, y = self.point(node.get('x'), node.get('y'), font_size)
self.stream.transform(1, 0, 0, 1, x, y)
self.transform(node.get('transform'), font_size)

# Manage display and visibility
display = node.get('display', 'inline') != 'none'
Expand Down

0 comments on commit 6dde6cb

Please sign in to comment.