Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Nov 21, 2023
1 parent 696ea8c commit cc6f3df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/egui_plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -990,9 +990,7 @@ impl Plot {
bounds.translate(delta);
auto_bounds = false.into();
}
BoundsModification::AutoBounds(new_auto_bounds) => {
auto_bounds = new_auto_bounds
}
BoundsModification::AutoBounds(new_auto_bounds) => auto_bounds = new_auto_bounds,
}
}

Expand Down Expand Up @@ -1380,7 +1378,9 @@ impl PlotUi {

/// Whether the plot axes were in auto-bounds mode in the last frame. If called on the first
/// frame, this is the [`Plot`]'s default auto-bounds mode.
pub fn auto_bounds(&self) -> Vec2b { self.last_auto_bounds }
pub fn auto_bounds(&self) -> Vec2b {
self.last_auto_bounds
}

/// Set the auto-bounds mode for the plot axes.
pub fn set_auto_bounds(&mut self, auto_bounds: Vec2b) {
Expand Down

0 comments on commit cc6f3df

Please sign in to comment.