Skip to content

Commit

Permalink
Remove debug-assert that false-positived on large f32 values due to p…
Browse files Browse the repository at this point in the history
…recision problems
  • Loading branch information
emilk committed Sep 17, 2024
1 parent 7d6c83b commit 1191d9f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/egui/src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,6 @@ impl Layout {
let rect = self.align_size_within_rect(size, frame);
debug_assert!(!rect.any_nan());
debug_assert!(!rect.is_negative());
debug_assert!((rect.width() - size.x).abs() < 1.0 || size.x == f32::INFINITY);
debug_assert!((rect.height() - size.y).abs() < 1.0 || size.y == f32::INFINITY);
rect
}

Expand Down

0 comments on commit 1191d9f

Please sign in to comment.