From a2082f226f9f6dd21cb9eb78b96be197de222abb Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 24 Aug 2021 16:00:55 +0200 Subject: [PATCH] Change an assert into an egui_assert --- egui/src/grid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egui/src/grid.rs b/egui/src/grid.rs index cbef8c86..b8a71f7e 100644 --- a/egui/src/grid.rs +++ b/egui/src/grid.rs @@ -67,7 +67,7 @@ impl GridLayout { // TODO: respect current layout let initial_available = ui.placer().max_rect().intersect(ui.cursor()); - assert!( + crate::egui_assert!( initial_available.min.x.is_finite(), "Grid not yet available for right-to-left layouts" );