mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Implement BitOr and BitOrAssign for Rect (#7319)
This commit is contained in:
@@ -363,7 +363,7 @@ impl Shape {
|
||||
Self::Vec(shapes) => {
|
||||
let mut rect = Rect::NOTHING;
|
||||
for shape in shapes {
|
||||
rect = rect.union(shape.visual_bounding_rect());
|
||||
rect |= shape.visual_bounding_rect();
|
||||
}
|
||||
rect
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user