Remove debug-assert that false-positived on large f32 values due to precision problems

This commit is contained in:
Emil Ernerfeldt 2024-09-17 15:32:17 +02:00
parent 7d6c83b37f
commit 1191d9fa86
1 changed files with 0 additions and 2 deletions

View File

@ -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
}