reorder if statement

This commit is contained in:
Simon Gardling 2022-03-08 11:28:07 -05:00
parent c292c8e72a
commit cafc8c7285

View File

@ -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);