diff --git a/crates/egui/src/widgets/plot/mod.rs b/crates/egui/src/widgets/plot/mod.rs index b1fb7c271..22ce2438e 100644 --- a/crates/egui/src/widgets/plot/mod.rs +++ b/crates/egui/src/widgets/plot/mod.rs @@ -1604,10 +1604,10 @@ impl PreparedPlot { let mut axes_shapes = Vec::new(); if self.show_grid.x { - self.paint_grid::<{ X_AXIS }>(ui, &mut axes_shapes); + self.paint_grid::(ui, &mut axes_shapes); } if self.show_grid.y { - self.paint_grid::<{ Y_AXIS }>(ui, &mut axes_shapes); + self.paint_grid::(ui, &mut axes_shapes); } // Sort the axes by strength so that those with higher strength are drawn in front.