mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Remove debug-assert that false-positived on large f32 values due to precision problems
This commit is contained in:
@@ -660,8 +660,6 @@ impl Layout {
|
|||||||
let rect = self.align_size_within_rect(size, frame);
|
let rect = self.align_size_within_rect(size, frame);
|
||||||
debug_assert!(!rect.any_nan());
|
debug_assert!(!rect.any_nan());
|
||||||
debug_assert!(!rect.is_negative());
|
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
|
rect
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user