mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Fix dotted and dashed borders
This commit is contained in:
parent
6b8d32a501
commit
856890e0b1
@ -455,7 +455,7 @@ def clip_border_segment(context, enable_hinting, style, width, side,
|
||||
# but not if the dashes are too small.
|
||||
dash = length / (
|
||||
round(length / dash) + (round(length / dash) + 1) % 2)
|
||||
for i in range(0, int(round(length / dash)), 2):
|
||||
for i in range(1, int(round(length / dash)), 2):
|
||||
if side == 'top':
|
||||
context.rectangle(
|
||||
bbx + i * dash, bby, dash, width)
|
||||
|
Loading…
Reference in New Issue
Block a user