From 3e778a39f423b22beb717a9054702f5ba453ffa1 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 24 Feb 2022 22:34:59 -0500 Subject: [PATCH] add comment --- src/egui_app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egui_app.rs b/src/egui_app.rs index 3a2c43f..be7f40e 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -150,6 +150,7 @@ impl epi::App for MathApp { let max_x_old = *max_x; let max_x_response = ui.add(egui::Slider::new(max_x, X_RANGE).text("Max X")); + // Checks bounds, and if they are invalid, fix them if min_x >= max_x { if max_x_response.changed() { *max_x = max_x_old;