Skip to content

Commit

Permalink
Avoid mutating the image-slice
Browse files Browse the repository at this point in the history
Avoid mutating border_image_slice while drawing image borders.
  • Loading branch information
xavidotron committed Apr 20, 2024
1 parent 7d2a6a9 commit 1ef4d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def draw_column_border():
should_fill = False
image_slice = box.style['border_image_slice']
if image_slice[0] == 'fill':
image_slice.pop(0)
image_slice = image_slice[1:];
should_fill = True

def compute_dim(d, intrinsic):
Expand Down

0 comments on commit 1ef4d06

Please sign in to comment.