Small correction to the plot with multiple axes.

This commit is contained in:
Michael Möller 2013-06-09 16:53:16 +00:00
parent a9ae1a293f
commit 3ab2982c85

View File

@ -227,13 +227,14 @@ namespace OpenHardwareMonitor.GUI {
var type = pair.Key; var type = pair.Key;
axis.StartPosition = 0; axis.StartPosition = 0;
axis.EndPosition = 1; axis.EndPosition = 1;
axis.PositionTier = tier; axis.PositionTier = axis.IsAxisVisible ? tier : 0;
if (axis.IsAxisVisible) if (axis.IsAxisVisible)
tier++; tier++;
axis.MajorGridlineStyle = LineStyle.None; axis.MajorGridlineStyle = LineStyle.None;
axis.MinorGridlineStyle = LineStyle.None; axis.MinorGridlineStyle = LineStyle.None;
} }
} }
} }
public void InvalidatePlot() { public void InvalidatePlot() {