UI improvements

This commit is contained in:
Simon Gardling
2022-02-25 11:57:31 -05:00
parent b98640d54a
commit 274d072bfe
3 changed files with 34 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ impl FunctionOutput {
#[inline]
pub fn has_integral(&self) -> bool {
match &self.front {
Some(x) => true,
Some(_) => true,
None => false,
}
}
@@ -123,6 +123,10 @@ impl Function {
self.max_x = max_x;
}
if integral != self.integral {
self.integral = integral;
}
// Makes sure proper arguments are passed when integral is enabled
if integral {
if integral_min_x.is_none() {