From cafc8c7285aabf95191c44938f0e540a04932a91 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 8 Mar 2022 11:28:07 -0500 Subject: [PATCH] reorder if statement --- src/egui_app.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egui_app.rs b/src/egui_app.rs index bb61ed5..250545f 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -248,12 +248,12 @@ impl MathApp { }); let proc_func_str = add_asterisks(self.func_strs[i].clone()); - if (proc_func_str != function.get_func_str()) - | self.last_error.iter().any(|ele| ele.0 == i) - | integral_toggle + if integral_toggle | derivative_toggle | max_x_changed | min_x_changed + | (proc_func_str != function.get_func_str()) + | self.last_error.iter().any(|ele| ele.0 == i) { // let proc_func_str = self.func_strs[i].clone(); let func_test_output = test_func(&proc_func_str);