Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Just-Nans committed Jun 26, 2024
1 parent 78b8355 commit 8d02c14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/egui_plot/src/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,11 @@ impl PlotBounds {
for d in 0..2 {
self.min[d] = self.min[d].clamp(f64::MIN, f64::MAX);
if self.min[d].is_nan() {
println!("min[d] is nan");
self.min[d] = 0.0;
}

self.max[d] = self.max[d].clamp(f64::MIN, f64::MAX);
if self.max[d].is_nan() {
println!("max[d] is nan");
self.max[d] = 0.0;
}
}
Expand Down

0 comments on commit 8d02c14

Please sign in to comment.