diff options
author | 2024-02-22 17:35:28 +0100 | |
---|---|---|
committer | 2024-02-22 17:35:28 +0100 | |
commit | 331cfc1102471e7399f7090d4d19545f1961bd9b (patch) | |
tree | fb7f3e751c861eb883357efde4681b6d7800c8aa /tiny_skia | |
parent | ff49f581fa153e12e0160353fe348e4289a0837e (diff) | |
download | iced-331cfc1102471e7399f7090d4d19545f1961bd9b.tar.gz iced-331cfc1102471e7399f7090d4d19545f1961bd9b.tar.bz2 iced-331cfc1102471e7399f7090d4d19545f1961bd9b.zip |
Fix `iced_tiny_skia` clipping line strokes
Diffstat (limited to 'tiny_skia')
-rw-r--r-- | tiny_skia/src/backend.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs index 5d3a7a6f..b6487b38 100644 --- a/tiny_skia/src/backend.rs +++ b/tiny_skia/src/backend.rs @@ -674,8 +674,8 @@ impl Backend { let physical_bounds = (Rectangle { x: bounds.x(), y: bounds.y(), - width: bounds.width(), - height: bounds.height(), + width: bounds.width().max(1.0), + height: bounds.height().max(1.0), } * transformation) * scale_factor; |