Skip to content

Commit

Permalink
Force use of min_auto_bounds if auto_bounds is disabled by default
Browse files Browse the repository at this point in the history
This fixes  #3893.
  • Loading branch information
aholtzma-am committed May 24, 2024
1 parent 34672bc commit 7545d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui_plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -975,10 +975,10 @@ impl<'a> Plot<'a> {
}

// Reset bounds to initial bounds if they haven't been modified.
if mem.auto_bounds.x {
if !default_auto_bounds.x || mem.auto_bounds.x {
bounds.set_x(&min_auto_bounds);
}
if mem.auto_bounds.y {
if !default_auto_bounds.y || mem.auto_bounds.y {
bounds.set_y(&min_auto_bounds);
}

Expand Down

0 comments on commit 7545d97

Please sign in to comment.