diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-23 15:30:28 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-23 15:30:28 +0200 |
| commit | 363836a28e4c8877b7c5203ed4ce595a59731802 (patch) | |
| tree | 0f376023f81e3db69a3c1641a0db4136a7b7d3a8 /tests | |
| parent | f2193307c48055e54d4d1b5eca43bf0189699d40 (diff) | |
Fix layout panic in rounded rectangle
Fixes #1216 both by hardening the rounded rectangle against negative size and by ensuring that the negative size doesn't occur in the first place for this case.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/clamp-panic.png | bin | 0 -> 274 bytes | |||
| -rw-r--r-- | tests/typ/bugs/clamp-panic.typ | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/ref/bugs/clamp-panic.png b/tests/ref/bugs/clamp-panic.png Binary files differnew file mode 100644 index 00000000..c0c4912e --- /dev/null +++ b/tests/ref/bugs/clamp-panic.png diff --git a/tests/typ/bugs/clamp-panic.typ b/tests/typ/bugs/clamp-panic.typ new file mode 100644 index 00000000..5f167c76 --- /dev/null +++ b/tests/typ/bugs/clamp-panic.typ @@ -0,0 +1,3 @@ +#set page(height: 20pt, margin: 0pt) +#v(22pt) +#block(fill: red, width: 100%, height: 10pt, radius: 4pt) |
