diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/geom/rounded.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geom/rounded.rs b/src/geom/rounded.rs index f445dfcb..24b52448 100644 --- a/src/geom/rounded.rs +++ b/src/geom/rounded.rs @@ -52,7 +52,7 @@ fn stroke_segments( let mut connection = Connection::default(); let mut path = Path::new(); let mut always_continuous = true; - let max_radius = size.x.min(size.y) / 2.0; + let max_radius = size.x.min(size.y).max(Abs::zero()) / 2.0; for side in [Side::Top, Side::Right, Side::Bottom, Side::Left] { let continuous = stroke.get_ref(side) == stroke.get_ref(side.next_cw()); |
