Add Shape::visual_bounding_rect()

This commit is contained in:
Emil Ernerfeldt
2022-02-21 21:46:30 +01:00
parent fd3fb726c1
commit 8f887e2ebd
4 changed files with 89 additions and 22 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ impl PaintBezier {
let shape =
QuadraticBezierShape::from_points_stroke(points, true, self.fill, self.stroke);
painter.add(epaint::RectShape::stroke(
shape.bounding_rect(),
shape.visual_bounding_rect(),
0.0,
self.bounding_box_stroke,
));
@@ -133,7 +133,7 @@ impl PaintBezier {
let shape =
CubicBezierShape::from_points_stroke(points, true, self.fill, self.stroke);
painter.add(epaint::RectShape::stroke(
shape.bounding_rect(),
shape.visual_bounding_rect(),
0.0,
self.bounding_box_stroke,
));