mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Implement BitOr and BitOrAssign for Rect
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
|
||||
}
|
||||
|
||||
@@ -691,7 +691,7 @@ fn galley_from_rows(
|
||||
let mut num_indices = 0;
|
||||
|
||||
for placed_row in &mut rows {
|
||||
rect = rect.union(placed_row.rect());
|
||||
rect |= placed_row.rect();
|
||||
|
||||
let row = Arc::make_mut(&mut placed_row.row);
|
||||
row.visuals = tessellate_row(point_scale, &job, &format_summary, row);
|
||||
|
||||
Reference in New Issue
Block a user