From cb2298e98b5a4a3fcae25019ae6bb42d3b463241 Mon Sep 17 00:00:00 2001 From: carrotflakes Date: Thu, 5 May 2022 16:16:00 +0900 Subject: [PATCH] Fix CircleShape::visual_bounding_rect() (#1575) --- epaint/src/shape.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epaint/src/shape.rs b/epaint/src/shape.rs index 90b93596..ee3f88fe 100644 --- a/epaint/src/shape.rs +++ b/epaint/src/shape.rs @@ -331,7 +331,7 @@ impl CircleShape { } else { Rect::from_center_size( self.center, - Vec2::splat(self.radius + self.stroke.width / 2.0), + Vec2::splat(self.radius * 2.0 + self.stroke.width), ) } }