From c3dd6dbe890c79131e42d6db507b1d2c900a8a5b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 2 Oct 2022 08:48:37 +0200 Subject: [PATCH] Merge fix --- crates/egui/src/widgets/plot/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index a517db1e9..86faad9a7 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -79,6 +79,13 @@ struct AxisBools { y: bool, } +impl AxisBools { + #[inline] + pub fn any(&self) -> bool { + self.x || self.y + } +} + impl From for AxisBools { fn from(val: bool) -> Self { AxisBools { x: val, y: val }