adjust checks
This commit is contained in:
@@ -173,6 +173,7 @@ impl ChartManager {
|
|||||||
| (min_y != self.min_y)
|
| (min_y != self.min_y)
|
||||||
| (max_y != self.max_y);
|
| (max_y != self.max_y);
|
||||||
|
|
||||||
|
if underlying_update {
|
||||||
if min_x >= max_x {
|
if min_x >= max_x {
|
||||||
panic!("min_x is greater than (or equal to) than max_x!");
|
panic!("min_x is greater than (or equal to) than max_x!");
|
||||||
}
|
}
|
||||||
@@ -180,6 +181,7 @@ impl ChartManager {
|
|||||||
if min_y >= max_y {
|
if min_y >= max_y {
|
||||||
panic!("min_y is greater than (or equal to) than max_y!");
|
panic!("min_y is greater than (or equal to) than max_y!");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if 0 > resolution {
|
if 0 > resolution {
|
||||||
panic!("resolution cannot be less than 0");
|
panic!("resolution cannot be less than 0");
|
||||||
|
|||||||
Reference in New Issue
Block a user